Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use FB.api() after page reload (when logged in). #3

Open
gablabelle opened this issue Jan 14, 2018 · 0 comments
Open

Can't use FB.api() after page reload (when logged in). #3

gablabelle opened this issue Jan 14, 2018 · 0 comments

Comments

@gablabelle
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant