Low quality user profile image

Problem statement

Facebook (not only) avatar image connected with the user profile has low quality. Auth0 and in-app user avatar accordingly are requested and shown low-resolution image. Seems like Auth0 requested and responded with the Facebook image used for the user icon (small avatar), not the default normal-sized profile image.

Solution

The user profile after login in with Facebook has two properties, “picture” (low quality) and “picture_large” (high quality). You can force the use of better quality with a rule like below.

function(user, context, callback) {
  // Use `picture_large` for picture if one is available
  user.picture = user.picture_large || user.picture;

  callback(null, user, callback);
}

Because the event.user object only has the “picture” property, this can not be done with Actions.

1 Like