androidoauth-2.0linkedin-apispring-social-linkedin

How to get profile URL from linkedIn API V2?


How can i get profile URL from linkedIn API V2 (api.linkedin.com/v2)? Requested &scope=r_emailaddress%20r_liteprofile response have only firstname,lastname,id and profile_picture before v2 we were able to find out profile URL from id (example: https://www.linkedin.com/profile/view?id=$ID ) but now this shows profile not found error and doesn't work. i have gone through many links and read LinkedIn documentation but didn't find the right solution moreover i have read on stackoverflow linkedIn don't recommend r_fullprofile permission just for vanity name is this correct ? what should i do to get profile URl from linkedin?


Solution

  • You can't with the scope you mentioned.

    You need to add r_basicprofile to the scope to request the vanityName.

    A few considerations: