开发者

Trying to "like" a particular page

开发者 https://www.devze.com 2023-03-04 12:09 出处:网络
I have authenticated my app, and I\'m able to post to the user\'s feed stream.But I have a button in my app which I want to allow the user to \"like\" my app\'s page on Facebook.So I\'m trying to do:

I have authenticated my app, and I'm able to post to the user's feed stream. But I have a button in my app which I want to allow the user to "like" my app's page on Facebook. So I'm trying to do:

client.PostAsync("/1211212121212121/likes", null);

This fails, and I get the following detail in the exception:

"(OAuthException) (#3) Application does not have the capability to make this API call."

When the user is first aut开发者_JAVA技巧henticating to Facebook, I have the following extended attributes:

  • read_stream
  • publish_stream
  • publish_checkins
  • user_likes
  • friends_likes

I honestly don't really know what "friends_likes" is. The Facebook documentation isn't really clear on the differences between "user_likes" and "friends_likes", so I just added them both. However, it did no good as I still can't seem to "like" the page I want.

Does anyone have any suggestions?


user_likes = What does the user like?

friends_likes = What do the friends of the user like?

Are you developing an desktop app? Otherwise i would just include the Facebook like button.


You need add permission "publish_actions" in your app goto settings permissions > User & Friend Permissions > "publish_actions"

0

精彩评论

暂无评论...
验证码 换一张
取 消