Facebook pages API: “Page Public Content Access” review screencast

前端 未结 5 870
囚心锁ツ
囚心锁ツ 2020-12-12 14:44

My website uses Facebook Page API to pull public content from a Facebook page, published by the page owner, to create a dynamic blog with a clear link to the Facebook page.<

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-12 14:49

    After a lot of struggle with FB direct support and FB Dev Community Group I found a way to get my FB Page public posts without having the infamous Page Public Content Access for which I had to create a screencasts with some comparisons of two different pages (?!).

    So, in few simple steps:

    1. Get your User Access Token for desired app from this nice FB tool
    2. Create Page Access Token like described in Page Acces Tokens Documentation. But be sure to not skip the part ... using the access token .... That means that your request should look like GET /{page-id}?fields=access_token&access_token=USER_ACCESS_TOKEN_FROM_STEP_1
    3. Then use Access Token Debugger to debug your brand new Page Access Token that will expire in an hour. At the bottom you will see the blue button saying Extend Access Token. Hit that and there you go - the never expire Page Access Token
    4. Use it to get the Facebook Page public posts on FB GRAPH /page-id/posts?access_token=PAGE_ACCESS_TOKEN

    UPDATE

    If you have trouble with step 2 (I had with some older apps) try using this tool https://developers.facebook.com/tools/explorer

提交回复
热议问题