You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting an OAuthException with code 2500 "An active access token must be used to query information about the current user." when trying to use FB.init(); after logging in.
After logging in, the page will reload, then in the console, run FB.getAccessToken(); it will return null.
But after adding FB.getLoginStatus(); after FB.init(); the same steps will return the user's facebook token and you will then be able to use the FB.api() in your app without getting the OAuthException.
Hello,
Getting an
OAuthException
with code 2500"An active access token must be used to query information about the current user."
when trying to useFB.init();
after logging in.After logging in, the page will reload, then in the console, run
FB.getAccessToken();
it will returnnull
.But after adding
FB.getLoginStatus();
afterFB.init();
the same steps will return the user's facebook token and you will then be able to use theFB.api()
in your app without getting theOAuthException
.react-graphql/authentication-with-facebook-and-apollo/src/components/App.js
Line 26 in 9ae150a
The text was updated successfully, but these errors were encountered: