Facebook Graph API : Publishing likes through the API is no longer available - facebook

Facebook Graph API
While try to post likes, I am getting below error.
{
"error": {
"message": "(#3) Publishing likes through the API is no longer available",
"type": "OAuthException",
"code": 3,
"fbtrace_id": "C9I3NJ2I9Gt"
}
}
http://prnt.sc/d973z5
So anyhow, I can post a likes to object/post?
Is there any other way to do same thing?

Apparently, Facebook has removed the feature. Here is the response from facebook team. :(
Shireesh Asthana:Facebook Team
Hi everyone,
Thanks again for reporting this and for your patience. We made the
difficult decision to restrict access to this functionality of the
Graph API to better maintain the quality standards of our community.
We're sorry that we had to take this step. Thank you for helping us
keep the Facebook platform a safe place for our community and
developers.
Thanks,
Shireesh
https://developers.facebook.com/bugs/1754734484744033/

Yes facebook removed this feature permanently you can only do with page access tokens and only pages can like the post of any other pages.
You can read our updated docs & changelog here:
Docs: https://developers.facebook.com/docs/graph-api/reference/v2.8/object/likes
Changelog: https://developers.facebook.com/docs/apps/changelog

Related

Got approved for oembed but still receiving "your use of this endpoint must be reviewed and approved by Facebook"

I'm struggling a lot with this API.
I just want my users to be able to embed Facebook & Instagram's post on my website.
I have asked access to the Oembed Read permissions.
After 5 days I got, what I think to be, permission to use the Oembed
But when I try to make a request with the Graph API Explorer I keep getting the following response
{
"error": {
"message": "(#10) To use 'Oembed Read', your use of this endpoint must be reviewed and approved by Facebook. To submit this 'Oembed Read' feature for review please read our documentation on reviewable features: https://developers.facebook.com/docs/apps/review.",
"type": "OAuthException",
"code": 10,
"fbtrace_id": "{fbtrace_id}"
}
}
curl -i -X GET \
"https://graph.facebook.com/v14.0/instagram_oembed?url={instagram_public_post_url}&access_token={app_access_token}"
So, is my review not really approved and I need extra steps ? Or is there a bug and I should contact Meta ? I'm lost and I feel like it's really painful to do all of this just for embed request.
Thank you for your helps
For the people who could have similar problem with me.
It's because I had the "Facebook Login" product setted up on my application. I created a new one without the Facebook Login. After being approved again it was working well.

How to get comments that rate the service from many Facebook pages (from restaurants) for sentiment analysis in 2018? (Twitter is not good enough)

I need to know If I need to give up on Facebook and just use Twitter for my purposes (if so, just tell me to use Twitter). I want to use pages I don't own.
I am doing this same process in Twitter, but Twitter doesn't have pages that rate places, services or things in general with comments and a rating system (or atleast the ones I need from one city with specific places).
Twitter has much more liberty to get comments from any #user_name but its not good enough for a sentiment analysis specific assignment I need to do. I am trying to get facebook comments or posts from multiple facebook pages (pages from restaurants) based on the comments used for ratings and download them to a csv or database with any program or by coding (Preferably Node.js, javavascript or php) for sentiment analysis (this is very easy with Twitter!). How can I achieve this with all the policies and restrictions Facebook has in 2018??
I have some questions with reference to facebook:
Will an app_id and app_secret by making an app in 2018 give me an access token to get the comments I need from ANY page and download them with graph api?
Is facebook graph API the only way to get comments or posts to download them?
Why doesn't any type of code or programs before and even right now in 2018 work anymore to get comments? (I get the errors below with either programs or graph api).
I tried to use Graph API from facebook for 2 different pages using GET and POST and I get some errors that I didn't have trouble with 9 months ago (this happens with every page I try to search with code in node.js, javascrip, php or the graph API from facebook):
GET/v3.1/OMENbyHPLatam/feed
{
"error": {
"message": "(#10) To use 'Page Public Content Access', your use of this endpoint must be reviewed and approved by Facebook. To submit this 'Page Public Content Access' feature for review please read our documentation on reviewable features: https://developers.facebook.com/docs/apps/review.",
"type": "OAuthException",
"code": 10,
"fbtrace_id": "CXg962vUvjY"
}
}
POST/v3.1/minecraft/feed
{
"error": {
"message": "(#200) Requires either publish_to_groups permission and app being installed in the group, or manage_pages and publish_pages as an admin with sufficient administrative permission",
"type": "OAuthException",
"code": 200,
"fbtrace_id": "EZvhzuk/UHL"
}
}

facebook app - accessing own page API during development

thanks for taking the time to read this!
I am developing an events based application using the facebook graph API. I am up to date with all the recent drama surrounding their changes etc. etc. (thanks, previous Stack Overflow questions!)
In multiple recent places on facebook (blog, changelog, app review etc.) there is this phrase:
"While testing and before submitting for review, your app may only access content that is available on a Page that you own. "
This is what we need to do so we can physically develop our app. Alas, on the graph api explorer armed with our 'app token' I am hit endlessly with:
{
"error": {
"message": "(#10) To use 'Page Public Content Access', your use of this endpoint must be reviewed and approved by Facebook. To submit this 'Page Public Content Access' feature for review please read our documentation on reviewable features: https://developers.facebook.com/docs/apps/review.",
"type": "OAuthException",
"code": 10,
"fbtrace_id": "CUbrJ1mlpCE"
}
}
I'm sure there are others out there managing to develop their apps in order to submit them for review, I've probably overlooked something silly but I've been at this for hours and can't seem to make headway, has anybody else managed to do this?

Get Facebook comment likes / reactions count

After Facebook API changes in recent weeks (https://newsroom.fb.com/news/2018/04/restricting-data-access/), is there any possibility to get reactions / likes on public posts?
I need to get a lot of status / comments / reactions (anonymised) from some public Facebook news page, e.g. CNN, Daily Mail etc. for educational purpose only - for my schoolwork. So I'm talking about data that can be seen by any Facebook user.
At first I tried Graph API Explorer, but it doesn't provide likes. After a while, I found out it is possible with an app. It worked for a moment, but the next day after I started getting the data, Facebook blocked it due to Cambridge Analytica scandal - I get this error now:
{
"error": {
"message": "(#200) Access to this data is temporarily disabled for non-active apps or apps that have not recently accessed this data due to changes we are making to the Facebook Platform. https://developers.facebook.com/status/issues/205942813488872/",
"type": "OAuthException",
"code": 200,
"fbtrace_id": "ElMgcZXjgMt"
}
}
My app is only "In Development" mode, and is not planned to be made public, I created it only for this single purpose - big data analysis homework.
Regarding Pages API, Facebook wrote on 4th of April: "So starting today, all future access to the Pages API will need to be approved by Facebook." However, they did not mention how to do it.
Could someone help me what should I do? I'm stuck at this point.

Facebook Graph API not returning regionalized pages when using App Token

We have a server application monitoring certain Facebook pages for Videos being uploaded. As there is no user involved (server app only), we use an App-Token for our requests.
So far so good, but we have issues with Pages that are only available in certain countries or territories, e.g. "/bitburger" seems to be available in Germany only. I can access the page via API with an User Token (relating to a german user), but my server or even the graph/api explorer (authenticating with an App Token) cannot access the page info.
It will result in an error such as:
{
"error": {
"message": "Unsupported get request. Object with ID 'bitburger' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
"type": "GraphMethodException",
"code": 100,
"fbtrace_id": "AlDpyo1BjLm"
}
}
Our application is supposed to be global solution that does not care about "regionalized pages" and needs to get the page info (and its published videos) independently from a users location.
Is there any way to achieve this?
So is there a possibility to tell the API-call to ignore regionalized filtering?
User Tokens are not an option (as I said, server app only) and we cannot have a user for every country in the world. We wouldn't even know the right country to begin with :/ It has to work with a location-independant App Token.
Thanks in advance for your help!
Looking forward to any solution.
Thanks and kind regards,
Daniel
// Update:
Thanks for your responses!
I got in touch with Facebook and it is in fact due to "market sites" that only users from this market (country or whatever) have access to. This maps to the API as well and teh App itself does not relate to any market.
The only solution there is (when not having a user to request with), is to get access for your App granted by the page admin. Then you can access the pages info. Unfortunately that does not help for anonymous monitoring.