I'm doing a login with Facebook through the Firebase login. I do:
FBSDKLoginManager().logIn(withReadPermissions: [...], from: self) { (result, error) in
guard let current = FBSDKAccessToken.current() else { return }
guard let token = current.tokenString else { return }
let credential = FIRFacebookAuthProvider.credential(withAccessToken: token)
FIRAuth.auth()?.signIn(with: credential) { (user, error) in
//user.photoURL
}
}
user.photoURL contains the url of the image, but it is very small (100x100), I would like to retrieve the bigger image.
On this stackoverflow post they say to add ?type=large to the url but it doesn't work.
Any solution?