Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I verify a LinkedIn access token?

How can I verify a LinkedIn access token?

I need to check if an access token is valid or not?

ex: in Facebook

https://graph.facebook.com/me?access_token=access_token

Is there a similar way to do it in LinkedIn?

like image 586
Mohammad AL-Raoosh Avatar asked May 09 '16 11:05

Mohammad AL-Raoosh


2 Answers

The url has been changed and the v1 API does not work anymore. Do use this one, if you need to verify access tokens generated from Linkedin.

https://api.linkedin.com/v2/me?oauth2_access_token=<your-token-here>

For other social media's, use can use urls from this gist: https://gist.github.com/pavittarx/15b46b08e779c2113864e9db399f35ac

like image 191
pavittarx Avatar answered Sep 17 '22 14:09

pavittarx


Additionally, you can filter the values:

https://api.linkedin.com/v1/people/~:(id,first-name,last-name,headline,picture-url,location,industry,current-share,num-connections,summary,specialties,positions)?format=json&oauth2_access_token={0}
like image 20
lorena Avatar answered Sep 19 '22 14:09

lorena