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".
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With