Facebook Access Token expired or not

How to check if access token expired or not using Facebook PHP SDK ???

Becuase its not documented i guess, and this link is not about SDK, isn't it ? So is they any way to check that using SDK or do I need to use curl ?

https://developers.facebook.com/blog/post/2011/05/13/how-to--handle-expired-access-tokens


ANSWERS:


How to check if access token expired or not using Facebook PHP SDK ?

There’s an API endpoint for that purpose, see here:


To get token expiration and other related token information you can make a GET call to Graph API debugging endpoint as show below.

GET /debug_token?
     input_token={input-token}&
     access_token={access-token}

input_token the access token you want to get information about

access_token your app access token or a valid user access token from a developer of the app



 MORE:


 ? Accessing RSVP list of Facebook event using PHP SDK with Graph API
 ? How to extend facebook access token in python
 ? How to extend facebook access token in python
 ? How to extend facebook access token in python
 ? facebook graph API company page URL?
 ? How to extend Facebook access token without an app?
 ? how to post image on facebook in your page
 ? How to have Access Token Facebook SDK 4.4.1
 ? How to have Access Token Facebook SDK 4.4.1
 ? How to have Access Token Facebook SDK 4.4.1