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

Token not invalidating #6

Closed
dmaier opened this issue Jul 16, 2012 · 3 comments
Closed

Token not invalidating #6

dmaier opened this issue Jul 16, 2012 · 3 comments

Comments

@dmaier
Copy link

dmaier commented Jul 16, 2012

Tokens can become invalid several ways, only one of which is the expiration time. See this page for details: https://developers.facebook.com/blog/post/2011/05/13/how-to--handle-expired-access-tokens/

There exist cases in the ANE such that a user's token can become invalid but the library doesn't think it is invalid. Then using the token can cause problems since it's not valid. Is there any way to check more than just the expiration time to know if a token is valid?

@titi-us
Copy link

titi-us commented Jul 20, 2012

No. You have to "manually" check after each call to facebook that the token is still valid. If it's not, you will receive a OAuthException. Then you have to logout and login your user.

@dmaier
Copy link
Author

dmaier commented Jul 20, 2012

Got it. Slightly annoying but this is a facebook problem, not yours. Thanks

@sscholle
Copy link

@dmaier Can you show me an example of how to work around this issue?

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

3 participants