Facebook Graph API: getting an access token with an app ID and secret

偶尔善良 提交于 2019-12-22 09:53:26

问题


https://developers.facebook.com/docs/facebook-login/access-tokens/:

Here is what I put in my browser:

https://graph.facebook.com/?endpoint&key=value&access_token=[THE APP ID]|[THE APP SECRET]

Here is the result.. an error message:

(#803) Some of the aliases you requested do not exist: endpoint

Help!


回答1:


  1. Goes to "https://developers.facebook.com/tools/explorer"
  2. Copy the code of "Access Token"

I use "Access Token" as Token for Rfacebook Packages. and it works.

Hope it can work on your side.




回答2:


The error told everything : endpoint alias does not exist.

If you want to generate the Facebook access token to test, just use the Graph API Explorer:

https://developers.facebook.com/tools/explorer

Or, you should use Oauth process to grant the Facebook app to get access_token.



来源:https://stackoverflow.com/questions/22594189/facebook-graph-api-getting-an-access-token-with-an-app-id-and-secret

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!