Can not authorise user in Facebook JS SDK : “This authorization code has been used.” or how to get new authorisation token?

元气小坏坏 提交于 2019-12-03 14:04:32

Here's what Facebook says:

"New security restrictions for OAuth authorization codes. We will only allow authorization codes to be exchanged for access tokens once and will require that they be exchanged for an access token within 10 minutes of their creation. This is in line with the OAuth 2.0 Spec which from the start has stated that "authorization codes MUST be short lived and single use". For more information, check out our Authentication documentation.

The way around this is to use the extending your access token api:

https://developers.facebook.com/docs/howtos/login/extending-tokens/

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