I'm trying to set a "like" for a page object on facebook using their ios sdk.
Connecting is all working nicely, but when I submit my graph api call:
[[myDelegate facebook] requestWithGraphPath:@"PAGE_ID/likes" andParams:[NSMutableDictionary dictionaryWithObjectsAndKeys: [[myDelegate facebook] accessToken],@"access_token",nil], andHttpMethod:@"POST" andDelegate:myDelegate];
(Note that PAGE_ID is the valid id of the page I'm trying to like)
the request fails and the NSError contains the message.
"(#3) Application does not have the capability to make this API call." of type "OAuth exception"
The permissions I asked for when authorizing were "publish_stream" and "offline_access". Should those be what I need to like a page? Am i perhaps buggering up submitting my access token?
It appears this functionality is not supported. According to this bug report, the status is "CLOSED WONTFIX" without any real explanation from Facebook on why they are not supporting this.