PHP Classes

How to check if access token is expired or not

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Implement PHP ...  >  All threads  >  How to check if access token is...  >  (Un) Subscribe thread alerts  
Subject:How to check if access token is...
Summary:How to check if access token is expired or not
Messages:2
Author:developer
Date:2014-10-07 12:31:05
 

  1. How to check if access token is...   Reply   Report abuse  
Picture of developer developer - 2014-10-07 12:31:05
hello,

can you help me how to check if access token is expired or not before posting to facebook, linkedin or googleplus.

  2. Re: How to check if access token is...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2014-10-07 22:06:08 - In reply to message 1 from developer
I don't know why you need to know if a token is expired.

Anyway, as you may read in the documentation, the access_token_expiry may contain the expiry date timestamp in the UTC time zone, or it is empty in case no expiry time was set.