使用Facebook JavaScript SDK登录时访问令牌警告 [英] Access token warning when logging in using Facebook JavaScript SDK
问题描述
我正在使用debug.js
并在执行FB.login
时收到以下消息:
I'm using debug.js
and getting the following message when executing FB.login
:
您正在覆盖当前访问令牌,这意味着其他一些应用程序正在 期望使用不同的访问令牌,您可能会破坏事情. 请考虑将access_token直接传递给API参数 而不是覆盖全局设置.
You are overriding current access token, that means some other app is expecting different access token and you will probably break things. Please consider passing access_token directly to API parameters instead of overriding the global settings.
有任何线索吗?
推荐答案
我解决了该问题,问题是我正在请求该应用未获批准的许可,并且未使用与该应用关联的FB帐户应用程序以任何方式.通过将有问题的用户添加为测试用户,解决了该问题.不幸的是,Facebook返回的错误在这种情况下是如此完全没有用.希望这会有所帮助!
I solved the issue, the problem was that I was requesting a permission that the app was not approved for, and not using an FB account that was associated with the app in any way. By adding the user in question as a test user, the problem was solved. It's rather unfortunate that the error Facebook returns is so completely useless in this case. Hope this helps!
这篇关于使用Facebook JavaScript SDK登录时访问令牌警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!