Skip to content
New issue

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

LinkedIn - higher quality profile photo #28

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

DanaCase
Copy link

Just changed from 'picture_url' which gives a thumbnail to 'picture_url::(original)' which gives a higher quality image.

profile.photos.push(json.pictureUrl);
if (json.pictureUrls && json.pictureUrls.values) {
_.each(json.pictureUrls.values, function(pictureUrl){
profile.photos.push(pictureUrl);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{ value: pictureUrl }

see http://passportjs.org/docs/profile

@siacomuzzi
Copy link
Member

I prefer to keep thumbnails urls inside profile.photos and access to higher quality images from profile._json.pictureUrls

What do you think?

@oieesah
Copy link

oieesah commented Aug 17, 2016

@siacomuzzi I understand we need to follow the naming convention mentioned in LinkedIn API. But "pictureUrls" isn't very much self explanatory where there is also "pictureUrl" key name. how about having "pictureUrlsOriginal" as a key name instead?

dmlenton pushed a commit to dmlenton/passport-linkedin-oauth2 that referenced this pull request Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants