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 badges2 Answers
Reset to default 2Ensure 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条)