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

Refresh access token #18

Open
NetoBraghetto opened this issue Feb 9, 2017 · 3 comments
Open

Refresh access token #18

NetoBraghetto opened this issue Feb 9, 2017 · 3 comments

Comments

@NetoBraghetto
Copy link

How do i refresh the Facebook access-token in order to communicate to the Tinder SDK?

@skipperbent
Copy link
Owner

I'm not sure, normally you would just redirect to the Facebook authentication dialog - and as we don't know the redirect-uri, I don't think we can request a long-lived access_token.

You could try asking for the offline_access permission and see if that gives you a token that doesn't expire:

https://developers.facebook.com/docs/roadmap/completed-changes/offline-access-removal

Then you should be able to call:

https://graph.facebook.com/oauth/access_token?
client_id=APP_ID&
client_secret=APP_SECRET&
grant_type=fb_exchange_token&
fb_exchange_token=EXISTING_ACCESS_TOKEN 

to refresh your token periodically.

@NetoBraghetto
Copy link
Author

we dont have the client_secret also =(

@joykalyanguru
Copy link

We can Use 'api_token' token instead of access-token. access-token lives 2 hours & api_token lives 24 hours.

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