I am 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
Region (permissions):
'scope' => 'publish_stream, email'
The only thing that can be programmed is facebook objects with a likes connection.
likes
Taken from https://developers.facebook.com/docs/reference/api/ :
You can comment or like any object that has / comments or / likes the connection by posting at https://graph.facebook.com/OBJECT_ID/comments and https://graph.facebook.com/OBJECT_ID/likes
The user object also has a connection of type like, but it is used to aggregate characters. for other objects, it is impossible to "please" the user. (fortunately, P)Thanks to @Juicy Scripter for pointing this out ...
user
From: https://developers.facebook.com/docs/reference/api/page/
To get a list of your favorite pages from a user, you need HTTP. Get /me/likes with a valid user access token with at least user_likes permission. There is no API method to add a page to a page you like or remove a page from your favorites.
/me/likes
user_likes
Source: https://habr.com/ru/post/1390215/More articles:How to create and delete data from a many-to-many relationship in CRM-2011? - c #LazyInitializationException with Managed CDI Bean and Bean State Session - lazy-initializationComparison Operator Priority in Python vs. C / C ++ - c ++Does the conversation not automatically spread when you submit the form? - javaHow to get the BSSID of Wi-Fi networks configured in the supplicator - android? - androidiOS: difference between the location I get from CLLocationManager and MKMapView property userLocation - iosHow to create a playlist and get a URI from it in the application applications API? - spotifySpotify Apps API: Library Class Will Not Return Users Playlists - apiMagento Override getPrice () - overrideAvoiding the game loop in XNA 4.0 - c #All Articles