Check token

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Check if an OA...  >  All threads  >  Check token  >  (Un) Subscribe thread alerts  
Subject:Check token
Summary:Check token
Messages:3
Author:Alexey
Date:2015-03-09 12:52:02
 

  1. Check token   Reply   Report abuse  
Picture of Alexey Alexey - 2015-03-09 12:52:02
Good day!
I may be wrong, but maybe it will helpfull for you to check response of request to any function of Facebook. For now I have a project a music player for vk.com. Oauth is in use there too. I create a desktop application, so I'm use VB.NET, but VB.NET make same request as a PHP, and get same result: json formatted string. So, in this string you may retrive error and handle it. Look here: http://vk.com/dev/auth_sites. Maybe it'll helpfull for you...

  2. Re: Check token   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-03-09 21:56:32 - In reply to message 1 from Alexey
Yes, you may always interpret the errors returned from API calls to see if the token became invalid.

Anyway, the point is that regardless of the reasons, you always need to ask the user to authorize the access again and get a new token.

  3. Re: Check token   Reply   Report abuse  
Picture of Alexey Alexey - 2015-03-10 00:55:16 - In reply to message 2 from Manuel Lemos
Well, here I can nothing to do - perhaps the reason is security, however, its means that developers will need to force users to re-login. At least OAuth seems like...

 
For more information send a message to info at phpclasses dot org.