diff --git a/modules/users/server/config/strategies/facebook.js b/modules/users/server/config/strategies/facebook.js index 7acdd217cd..dfec829c79 100644 --- a/modules/users/server/config/strategies/facebook.js +++ b/modules/users/server/config/strategies/facebook.js @@ -29,7 +29,7 @@ module.exports = function(config) { lastName: profile.name.familyName, displayName: profile.displayName, email: profile.emails[0].value, - profileImageURL: (profile.photos && profile.photos.length) ? profile.photos[0].value : undefined, + profileImageURL: (profile.id) ? '//graph.facebook.com/' + profile.id + '/picture?type=large' : undefined, provider: 'facebook', providerIdentifierField: 'id', providerData: providerData diff --git a/modules/users/server/config/strategies/twitter.js b/modules/users/server/config/strategies/twitter.js index f58de392c2..b7d46435b7 100644 --- a/modules/users/server/config/strategies/twitter.js +++ b/modules/users/server/config/strategies/twitter.js @@ -26,7 +26,7 @@ module.exports = function(config) { var providerUserProfile = { displayName: profile.displayName, username: profile.username, - profileImageURL: (profile.photos && profile.photos.length) ? profile.photos[0].value : undefined, + profileImageURL: profile.photos[0].value.replace('normal', 'bigger'), provider: 'twitter', providerIdentifierField: 'id_str', providerData: providerData