OAuthException: (#2) Failed to create any app request

笑着哭i 提交于 2019-12-04 15:54:06

The endpoint does not return the token only, but a string in the form access_token=YOUR_APP_ACCESS_TOKEN.

So what you are passing as access_token parameter is not really an access token – you’ll have to trim the access_token= first.

You need a valid app access_token to make the request to the API. The easiest way to create an app access_token is to use the app_id and secret. As the Facebook documentation states:

There is another method to make calls to the Graph API that doesn't require using a generated app token. You can just pass your app id and app secret as the access_token parameter when you make a call:

https://graph.facebook.com/endpoint?key=value&access_token=app_id|app_secret

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