Facebook ios SDK, liking a page, "application does not have the capability"
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:
开发者_Go百科[[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.
http://bugs.developers.facebook.net/show_bug.cgi?id=10714#c46
Facebook just recently added this functionality. See http://developers.facebook.com/docs/opengraph/actions/builtin/likes/
I am facing the same problem. I see that your asked permissons are right and i dont know anything about object c but looks like my ActinScript method...
I think (i read it in lot of pages and posts) that the API doesnt let you like a page, but you can like coments and other things with id, but i am afraid that liking pages is maybe not imposible but not easy...
精彩评论