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

Share:
13,047
Yogendrasinh
Author by

Yogendrasinh

Full stack PHP Developer.

Updated on June 05, 2022

Comments

  • Yogendrasinh
    Yogendrasinh almost 2 years

    I want to access the public post of the public page in php 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
    Yogendrasinh about 5 years
    Can you please elaborate what you said. i didn't understand.
  • andyrandy
    andyrandy about 5 years
    i have added another link about the api call. it includes example code too.
  • Yogendrasinh
    Yogendrasinh about 5 years
    actually 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
    andyrandy about 5 years
    you 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.