Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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".

like image 341
user1217055 Avatar asked Nov 04 '22 20:11

user1217055


1 Answers

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.

like image 172
Daniel Li Avatar answered Nov 11 '22 06:11

Daniel Li