Get LinkedIn user profile data using LinkedIn oauth2

1k views Asked by At

I created an app on LinkedIn Developers, and I was able to get an access token when a user logged in. The problem is that I can only get the ID, name, email and photo of the user. I am unable to get the full details of the profile and even the link to the user's profile via (vanityName).

This is the scope I use: scope=r_liteprofile%20r_emailaddress%20profile%20openid%20w_member_social%20email

Can anyone help?

I tried different scopes and different prejection without success.

2

There are 2 answers

0
Ashavan On

Profile fields are heavily restricted with the LinkedIn API. You can see an overview here; essentially, you're getting the basic profile fields and for anything beyond that, you need to have special approval from LinkedIn. And per this page, the r_compliance permission is closed.

0
mvbl fst On

Use scopes:

  • openid
  • profile
  • email