Get public page statuses using Facebook Graph API without Access Token

后端 未结 4 2014
余生分开走
余生分开走 2020-11-29 17:23

I\'m trying to use the Facebook Graph API to get the latest status from a public page, let\'s say http://www.facebook.com/microsoft

According to http://developers.fa

4条回答
  •  温柔的废话
    2020-11-29 17:58

    This is by design. Once it was possible to fetch the latest status from a public page without access token. That was changed in order to block unidentified anonymous access to the API. You can get an access token for the application (if you don't have a Facebook application set for your website - you should create it) with the following call using graph API:

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

    This is called App Access Token. Then you proceed with the actual API call using the app access token from above.

    hope this helps

提交回复
热议问题