I’m using this code:
$facebook->api('/me/likes/', 'post', array('url' => 'http://www.google.com'));
I get the following error:
Fatal error: Uncaught OAuthException: (#200) App does not have permission to make this call thrown in
The scope (permissions) is:
'scope' => 'publish_stream, email'
The only thing that can be programmatically liked is facebook Objects with the
likesconnection.Taken from https://developers.facebook.com/docs/reference/api/ :
UPDATE :
The
userobject also has a likes connection, but that is used for aggregation of likes for other objects, it is not possible to “like” a user. ( thankfully ;P )Thanks to @Juicy Scripter for pointing this out…