Reputation: 13213
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?
Upvotes: 1
Views: 4509
Reputation: 5724
Facebook just recently added this functionality. See http://developers.facebook.com/docs/opengraph/actions/builtin/likes/
Upvotes: 2
Reputation: 16124
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
Upvotes: 4
Reputation: 1234
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...
Upvotes: 0