facebook - (#3) Application does not have the capability to make this API call. JavaScript SDK - Stack Overflow

I am trying to like a post with the JavaScript API, like this (id is the post ID):FB.api(''+

I am trying to like a post with the JavaScript API, like this (id is the post ID):

FB.api('/'+id+'/likes', 'post');

For example, FB.api('/55353596297_10150952824706298/likes', 'post');

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

I am trying to like a post with the JavaScript API, like this (id is the post ID):

FB.api('/'+id+'/likes', 'post');

For example, FB.api('/55353596297_10150952824706298/likes', 'post');

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

Share Improve this question asked Jul 6, 2012 at 13:54 user1217055user1217055 911 gold badge1 silver badge5 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 2

Ensure that you have the permissions to affect this. Most applications simply have the PUBLISH capability (feed) and basic permissions.

Now, if you're asking to retrieve the Likes for a given pool of users, aim to use:

FB.api("/likes?ids=55353596297,55353596298")

For retrieving multiple user interests.

Your app needs the publish_actions permission. My code:

FB.api(
    '131389306871851_642563079087802/likes',
    'post',
    {access_token:yourTokenHere}, // from authResponse.accessToken
    function(r) {
        console.log(r)            // Prints "true"
    }
);

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742289068a4415856.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信