Flutter – Getting Profile URL by using Linkedin API and linkedin_login Package

Issue

I am trying to create Flutter app that authenticates first either with google or email authentication and later Adds the LinkedIn profile.

Rather than allowing users just to type their profile URL is there a way to know if a user who has authenticated with the linkedin_login package from PUB.

I tried this package and it works but it only gets the email, first name, last name, profile picture, access token, and userID.

I need to get the profile URL of the person who authenticates with this. I tried the Linkedin API docs and it did not make much sense to me.

Anyone with experience in using this can help my cause. Explain The API calls and the setup for this as well.

PS: Explain like you’re teaching a noob.
Thanks.

Solution

https://api.linkedin.com/v2/me will return : firstName,lastName,profilePicture,id

r_emailaddress will return : emailAddress

for position and headline or for calling: https://developer.linkedin.com/docs/guide/v2/people/profile-api – you have to apply for r_basicprofile to Linkedin because their information not available in V2 r_liteprofile

Check this article.

To sum up: You need to have a LinkedIn partner program, and you will get this information, but it is very hard to be accepted here.

And the reason why is this so complicated no one knows except Linkedin guys https://thenextweb.com/dd/2015/02/12/linkedin-takes-aim-developers-plans-lock-apis/.

Answered By – Nihad Delic

Answer Checked By – David Marino (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *