facebook app - accessing own page API during development - facebook

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?

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

Access Facebook App Permission Page Public Content Access

There is many people talking about the ability to leave your app in dev mode and test this endpoint. Without requirement of having the "Page Public Content Access" approved. Well, after trying to test this inside the Graph Explorer tool - either I am slow, or that's complete trash information.
Has anyone has success with the permission inside the tool or ? if so, what am i messing here.
Authorized the application in the explorer and get this
{
"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": "BqoZbQ2W2nV"
}
}
I've spent a few hours on this - really growing more grey hair over it.
My thinking, people are not understanding the printed text and just post on here, without really looking into it.
While you are testing your app and before you submit it for review,
your app can only access content on a Page for which the following is
true: The person who holds the admin role for the Page also holds an
admin, developer, or tester role on the app. If you want the app to be
able to access public content on other Pages, you must submit this
feature for review. Once you set your app to live mode, it will not be
able to see any Page public content without this feature.
In which case, I've submitted the permission for review and 2 times have been denied. We don't want to build out a complete application without the permissions working. How would you do that anyways, how would you test something and show it working for the review guys - without it actually working.
The video which was submitted showed us trying to use explorer without success. That's really all I want to do - test it in explorer and see if we can achieve the results and than build it into our application.
A few people have mentioned to use manage_pages in order to test it, which actually doesn't work. This permission is allowing us to see PUBLIC CONTENT on a page and search for pages, groups, etc. With manage_pages you can not do that - how could that be the way to test it.
This is what I am trying to use
https://graph.facebook.com/v3.1/pages/search?q=XXXX

Facebook business manager to use Page API

For those that will read it, thank you very much (and special thanks for helpers).
We're having some trouble with Facebook, and we're not sure if it's related to Facebook latest scandals.
Facebook forums are not the most responsive, so I thought to give it a shot here.
The goal is to read posts from our customers pages.
We thought that to create Business Manager with system user, ask our customers to add us as partners to their pages, generates page tokens and use the {page_id}/feed API.
In order to test this flow, we did the next steps:
created BM
created Facebook Page (via the BM)
created an app
associated the app with the BM.
in BM settings page - created System User.
assigned the system user with the created page (admin role)
generated token (related to the app created).
using Graph API, called to me/accounts (with the access token given at 7).
I verified that the page id was in the response, and took the access_token from the response.
tried to call {page_id}/feed (or to /me).
This is the error I received:
{
"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": "BV/3aru6KTJ"
}
}
Thanks for anybody that helps.
seems you have go far:
take a look from the image and put some details to be approved after that you have to submit it. approval will take time just be patient.
App Review-> Add Items-> Page Content Access.. hopefully the rest instruction from developer.facebook.com will be understandable.
for those newbies just take a look how to start an app.
https://developers.facebook.com/docs/apps/register

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.