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?
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?
I found that it can be done like this:
https://api.linkedin.com/v1/people/~?oauth2_access_token=YOUR-ACCESS-TOKEN
and that's it :).
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}
You can use Token Introspection to get some informations about the token
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
© 2022 - 2024 — McMap. All rights reserved.