I\'m using debug.js
and getting the following message when executing FB.login
:
You are overriding current access token, that me
The real answer is the FB javascript SDK itself has problems, such as the one you reported. You may not be doing anything wrong, the error is probably with FB's SDK (AND / OR with their documentation)
I've reported and documented a similar error at the FB developers community forum, but don't expect a resolution anytime soon. https://developers.facebook.com/community/threads/445494736399091/ This happened in Dec 2019, when using Chrome, and the FB JS sdk v5.0
Update: I've since found out there are a few variables involved: For example, when using Chrome, some callbacks are firing multiple times, and returning a different accessToken, and the error message as reported in your question.
When I switched to the Edge Browser, it reported a normal facebook user is not allowed, while the app is in Test mode. wtf? (Chrome allowed my normal fb user). So I created a test user in the developer's dashboard, and when i logged in again, I did not get the error message as reported in your question.
Now, I went back to Chrome, still using my normal fb user (not the special test user), and don't see the error message anymore, or callbacks firing multiple times. (Is this because I gave it sometime to reset itself? who knows !)