admin管理员组文章数量:1332889
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"
}
);
版权声明:本文标题:facebook - (#3) Application does not have the capability to make this API call. JavaScript SDK - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742289068a2447463.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论