Hello,
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
OAuthExceptionwith 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