How can I get facebook full-size profile picture in Cognito User Pool attribute mappings.
I have mapped the Facebook attribute "picture" to Cognito User pool attribute "Picture" but the problem is that facebook is returning a picture of 50x50. I don't know how to specify the resolution in Cognito.
picture returned by facebook:
{
data: {
height: 50,
is_silhouette: false,
url: <URL of profile picture>,
width: 50
}
}
I found a way to do this. It's a bit of effort but it works.
access_token
to some unused user pool attribute. I mapped it to profile
profile
set to the facebook access token of the logged in user. The lambda should then;profile
attribute as you probably don't want to actually store the users Facebook access token in cognito.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With