Skip to content

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

@gablabelle

Description

@gablabelle

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions