Access token warning when logging in using Facebook JavaScript SDK

Ney picture Ney · Apr 17, 2017 · Viewed 10.1k times · Source

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

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.

Any clues?

Answer

Jim Edelstein picture Jim Edelstein · May 15, 2017

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!