ASHUTOSH
ASHUTOSH

Reputation: 892

VALIDITY of Access token in facebook graph api

If I have an access token then, can I somehow parse it to know at what time it will expire?

Upvotes: 0

Views: 390

Answers (1)

Igy
Igy

Reputation: 43816

You can use Facebook's Debug Tool to check this if it's a small number of tokens

The expiry is also given to you along with the token at the point in the Authentication flow where you obtain the token itself - so ideally you'd store the expiry at that time and keep it up to date when you get a new token or extend the current token

Upvotes: 2

Related Questions