Facebook Graph API to get public post of the public page
13,047
You have to apply for "Page Public Content Access": https://developers.facebook.com/docs/apps/review/feature/#reference-PAGES_ACCESS
After approval, you can just use the same API call as for your own pages (/page-id/feed) with any Access Token: https://developers.facebook.com/docs/graph-api/reference/v3.2/page/feed
Comments
-
Yogendrasinh almost 2 years
I want to access the
public post of the public page
inphp script
. Is there any feasibility to get this data from facebook pages. I have checked the documentation and found out as below url.https://developers.facebook.com/docs/pages/access-tokens
Here it is providing the access to the pages which are created by me but not for the other user pages. So how can i get access to other user's pages post.
Any help will be appreciate.
-
Yogendrasinh about 5 yearsCan you please elaborate what you said. i didn't understand.
-
andyrandy about 5 yearsi have added another link about the api call. it includes example code too.
-
Yogendrasinh about 5 yearsactually we required page feed but it is possible to get public pages data from my access token? Or we need to allow page to login and give permission to app to get the public data of that page?
-
andyrandy about 5 yearsyou can either get data for pages you manage, with a page token of that page, OR you need to apply for page public content access, as you can read in my answer.