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

Updating exchange token to user new 'expires' value instead of 'expires_in' #34

Closed
wants to merge 1 commit into from
Closed

Conversation

ghost
Copy link

@ghost ghost commented Jun 3, 2015

I can't seem to find any reason as to why the response return 'expires' as the documentation talks about 'expires_in', but this was required to get the long lived tokens working.
see: https://developers.facebook.com/docs/facebook-login/access-tokens#apptokens

@huandu
Copy link
Owner

huandu commented Jun 3, 2015

It was expires. It seems facebook changes the field name in response. Maybe we need to use expires_in by default and use expires as fallback.

@huandu
Copy link
Owner

huandu commented Jun 4, 2015

I fix it in 3c4ba14. Close this merge request as it's not a clean fix.

@huandu huandu closed this Jun 4, 2015
@ghost
Copy link
Author

ghost commented Jun 4, 2015

Thanks, this is a good solution. Perhaps there are still multiple version of the code at different versions deployed.

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

Successfully merging this pull request may close these issues.

2 participants