We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I get linkedin profile picture with passport auth strategy?
According to linkedin API the picture is accessible in basic profile permission
r_basicprofile Required to retrieve name, photo, headline, and current positions for authenticated user
I specified the scope
app.get('/auth/linkedin', passport.authenticate('linkedin', { scope: ['r_basicprofile', 'r_emailaddress'] }));
But have no idea what field should I use to get a picture.
passport.use(new LinkedInStrategy({ // clientID, clientSecret and callbackURL profileFields: ['id', 'first-name', 'last-name', 'email-address', 'headline', 'smth_to_get_a_picture'] }, // verify callback ));
The text was updated successfully, but these errors were encountered:
I found the field name - picture-url, but it is saved to pictureUrl parameter in profile not picture like in fb or g+
Sorry, something went wrong.
May be it is good idea to add picture field to standard passport profile fields (now it is supported by many providers).
+1 to the request, once 'picture-url' is in GET, the pictureUrl field is available in the response
No branches or pull requests
How can I get linkedin profile picture with passport auth strategy?
According to linkedin API the picture is accessible in basic profile permission
r_basicprofile Required to retrieve name, photo, headline, and current positions for authenticated user
I specified the scope
But have no idea what field should I use to get a picture.
The text was updated successfully, but these errors were encountered: