Access token warning when logging in using Facebook JavaScript SDK

前端 未结 5 778
我在风中等你
我在风中等你 2021-02-07 09:33

I\'m using debug.js and getting the following message when executing FB.login:

You are overriding current access token, that me

5条回答
  •  悲哀的现实
    2021-02-07 09:36

    It is probably because you called FB.getLoginStatus followed by FB.login. The error just means that you received an access token the first time when you called .getLoginStatus and then it was overwritten when you called .login.

    You can fix this by either removing .getLoginStatus (it is probably unnecessary if you are about to call .login) or instead re-use the access token from .getLoginStatus and pass it to the .login function.

提交回复
热议问题