6
votes

I need a help on REST API for linkedin profile. I tried a lot but am unable to pull those details.

Can any one help me on the api of linkedin which helps to retrieve the profile name, profile image..

"https://www.linkedin.com/oauth/v2/accessToken?grant_type=client_credentials&client_id=7828imadgwgbpl&client_secret=tA5gtnD8nmorio3m"

with this GET method am getting this error message

"{ "error": "access_denied", "error_description": "This application is not allowed to create application tokens" }"

1
I have already refererred. The main action here is unable to generate the access token, am getting the error message as "{ "error": "access_denied", "error_description": "This application is not allowed to create application tokens" }" - IMRANKHAN K
And that's the same exact error as the other poster is getting, and the answer to that question tells you how to fix the issue, which is why your post is a duplicate. - Ken White
3-legged OAuth is the default for a Linkedin app - jacktrades
@imrankhan-k did you managed to get your bearer token please? - hzitoun

1 Answers

-1
votes

Unfortunately, LinkedIn doesn't automatically enable 2-legged authorization.

https://docs.microsoft.com/en-us/linkedin/shared/authentication/client-credentials-flow?context=linkedin/context

If your application needs to access APIs that are not member specific, use the Client Credential Flow. Your application cannot access these APIs by default. Learn more about LinkedIn Developer Enterprise products to request permission to the Client Credential Flow.