Get Facebook Page posts using Graph API - facebook

I have a Facebook Page where I am admin and I have a Facebook App where I am admin and have manage_pages permission - still, when using the Graph API Explorer with an App Token I get "(#10) This endpoint requires the 'manage_pages' permission or the 'Page Public Content Access' feature...".
It has not been possible to get Page Public Content Access permission even though we have several pages with different admins (and we do not like to many admins on our App) and sometimes need to access posts from collaborators - and the Facebook docs seems very confusing and sometimes even contradictory when searching for a solution.
Any ideas what I am missing here?

Related

Instagram Insight API for page not linked to FB page

Is it possible to get Instagram insights via API (or sdk) for a page that is not linked to a facebook page?
From what I have read on the link Instagram Insight API it says
However, unlike Facebook users, Instagram users cannot grant your app access tokens directly. Instead, they must connect their Instagram Professional account to a Facebook Page. Once connected, any Facebook User who is able to perform Tasks on behalf of that Page will be able to grant your app a User access token, which you can then include in API requests..
Is there no way to get insights via API for pages that are not linked to facebook page? Cant the Instagram account grant an access key or something along the line ?

How to access Facebook page posts with app credentials?

I've been working on getting an old server-to-server Facebook app working which was previously used to load a feed of page posts for pages we own, but even after completing the review for manage_pages access I still get the error "This endpoint requires the 'manage_pages' permission or the 'Page Public Content Access' feature" when I try to access the feed via
https://graph.facebook.com/[page_id]/posts?access_token=[app access token]
or
https://graph.facebook.com/[page_id]/feed?access_token=[app access token]
I've tried generating the app access token with the Graph API explorer and also tried using [app ID]|[app secret] as the access token, but get the same result either way. Is there something I need to do to grant the app manage_pages access for specific pages now facebook's reviewed it, or is there something else I'm missing? The user that created the app can access the data if using a page access token, but since they removed the ability to create permanent page access tokens that's not really a viable option
edit: Looking into the documentation, it seems I should be able to request a page access token using the app authentication now that it's been approved for manage_pages permissions. However, trying to access one with https://graph.facebook.com/v5.0/[page ID]?fields=access_token&access_token=[app access token] also generates the manage_pages or Public Content permissions error, which seems like it would suggest the app doesn't actually have manage pages permissions?

instagram_business_account ID missing on Facebook graph api

When i test my app on the Graph Explorer the instagram_business_account id doesn't appear in my list...
We manage several facebook pages, and some others work fine with same parameters.
I have all the permissions needed, manage_pages business_management and instagram_basic.
I already tried to to go back to personal instagram account and then business again but it doesn't change anything...
Any new solution for this known issue?
ref : https://developers.facebook.com/support/bugs/177912116363088/?disable_redirect=0
Try to add pages_read_engagement permission to your auth request. You don't need manage_pages just to get Instagram ID, its overkill.

Do I need to grant "manage_pages" permissions for an app just to view insights?

I'm trying to connect to a Facebook app that is requesting following permissions:
Access profile and posts from instagram business connected to your page
access insights for the instagram business connected to your page
** manage your pages**
show a list of pages you manage
access your page and app insights
The purpose of the app is to compile post and profile insight stats. If that is the case, why does it need "manage your pages" permission, which gives permission to manage/post/change my page settings?? Or is that legitimately needed just to analyze insights?
https://developers.facebook.com/docs/graph-api/reference/v2.12/insights#reading
Reading page insights requires a page access token, and the only way to get a page access token is to have a page admin grant manage_pages permission to the app first.
manage_pages is the baiscpermission to grant an app access to anything related to a page.
So yes, that an app that analyzes your page insight data asks for this permission, is legit. Of course you will have to trust it, that it won’t abuse it for anything else.
It won’t be able to post in your page’s name though, that would require publish_pages permission as well.

Querying Facebook Status Updates of a profile

I have a website that query Facebook graphApi and get the available public data of pages.
I have some profiles, where graphApi does not return any data i.e. post/status data marked public on profile.
Even when I try to visit profile manually i.e. by typing url in IE - https://www.facebook.com/ndalloul, it redirects me to Facebook login page.
But when I do it manually i.e. login to my Facebook Account and try to view the profile Ex:https://www.facebook.com/ndalloul shows me the data marked as public.
How to get this data from Facebook using API or Library?
Any help is appreciated.
Thanks.
Apart from the fact that Facebook is switching to the Graph API 2.0, you should not get any kind of redirect to login if you use your app access tokens and talk to the graph via cURL 8ro qeuivalent) .
The endpoint to get public statuses from fan pages, is page_id/feed/ You need an access token from an app with with read_stream permission and only those who grant you that permission will show the latest posts. More info here
You may now have to be approved by facebook to read the stream, by the way.