How can I retrieve a photo of the user with decent resolution that can be used from a mobile app? I looked at the guides and the api docs and the recommended way seemed to b
You can have better resolution profile pics, directly editing the URL for both providers (Google and Facebook):
Here is a javascript sample code but, you should be able to easily translate to Java:
getHigherResProviderPhotoUrl = ({ photoURL, providerId }: any): ?string => {
//workaround to get higer res profile picture
let result = photoURL;
if (providerId.includes('google')) {
result = photoURL.replace('s96-c', 's400-c');
} else if (providerId.includes('facebook')) {
result = `${photoURL}?type=large`;
}
return result;
};
Basically, depending on the provider, you just need to:
s96-c in the profile pic url with s400-c?type=large at the end of the urlFor example for google:
becomes

And for facebook:
becomes