Reputation: 1415
Is there an API end point to get the information available here?
I would like to be able to check in code when the access token expires.
Upvotes: 1
Views: 1606
Reputation: 1126
When you log in with facebook javascript SDK, it gives you an "expiresIn" value, under "autheResponse" object.
I believe this number to be in seconds.
Unfortunately i'm not sure how to extend that number, or request a longer expiration date, etcs.
Apologises for not being super precise, facebook API always leave this "unsure" feeling.
EDIT: Maybe you might want to check instructions for "extending tokens":
https://developers.facebook.com/docs/facebook-login/access-tokens
Upvotes: 0
Reputation: 15457
There is no specific end point to check access_tokens, instead you can call /me
using the access_token you have until it returns an error.
Upvotes: 3