I am using firebase to login a user through facebook. This all works fine and I can get the users FB profile image, although it is to small. Can somebody tell me how to get
According to the Facebook documentation on Profile Picture, you should be able to specify the size by appending width and height to the url:
let photoUrl = profile.photoURL?.absoluteString + "?width=\(width)&height=\(height)"
or by specifying the type:
let photoUrl = profile.photoURL?.absoluteString + "?type=large"
Once you get the photo Url, just add "?width=400&height=400" to the photo url. Here, height=width=400, you can choose your own height and width. It surely works!
Once the FB user authenticates, make a FBSDKGraphRequest using FBSDKGraphRequestConnection to get the users FBid, using which you can get the users profile picture by pluggin the id here:
https://graph.facebook.com//picture?type=large&return_ssl_resources=1
instead of type=large you can use ?width=<width>&height=<height> too
too