Facebook Graph API and Generic Access token

前端 未结 4 474
鱼传尺愫
鱼传尺愫 2021-02-06 19:48

If I understand correctly, the Graph API enables access to public pages using a generic access token. I\'m finding however that many public pages are not returned in search resu

4条回答
  •  日久生厌
    2021-02-06 20:43

    You can get a generic access token for your app that will let you look at requests where you would otherwise need an access_token= parameter in the Graph call. You don't need to authenticate users as the access token is for the application.

    https://graph.facebook.com/oauth/access_token?
    client_id=YOUR_APP_ID&
    client_secret=YOUR_APP_SECRET&
    grant_type=client_credentials
    

    example:

    https://graph.facebook.com/nike/posts?access_token={response from above call}
    

提交回复
热议问题