Google Sign In profile picture iOS

Hi. When I download the image with SDWebImageManager, it is downloaded a picture which has 0 px.
These are my functions :
static func loginWithGoogle(googleUser: GIDGoogleUser!) {

let fieldsMapping = [“primaryEmail”:“email”, “name”:“name”, “phone”:“phone”, “addressLocality”:“city”]
Backendless.sharedInstance().userService.loginWithGoogleSignInSDK(googleUser.authentication.idToken, accessToken: googleUser.authentication.accessToken, permissions: nil, fieldsMapping: fieldsMapping, response: { (theUser) -> Void in

let picturePath = “https://picasaweb.google.com/(googleUser.userID)
Backendless.sharedInstance().userService.currentUser.setProperty(“profilePicture”, object: picturePath)

Utils.handleUser(theUser)

}) { (error) -> Void in
print(error.message)
}
}
the download function :
SDWebImageManager.sharedManager().downloadImageWithURL(NSURL(string: imagePath), options: SDWebImageOptions.ProgressiveDownload, progress: nil, completed: { (image, error, theCacheType, completed, theUrl) -> Void in

if completed {
if error == nil {

SDImageCache.sharedImageCache().storeImage(image, forKey: userId)

} else {
Utils.displayAlertController(self, title: “Error!”, message: “There was an error on retrieving your profile picture: (error.localizedDescription)”, cancelButtonTitle: “Dismiss”)
}
}
})
For example, here is a link with the profile picture retrieved from a user : https://picasaweb.google.com/106737604090228505026

Isabela, how is this associated with Backendless SDK?
Have Picture url been saved as “profilePicture” user property? I don’t see userService.update(…) call in your code.

Maybe is this a problem of SDWebImageManager?

No, via Facebook/Twitter, it successfully download the profile picture… I think it’s something wrong with the method I retrieve the profile picture…

static func loginWithGoogle(googleUser: GIDGoogleUser!) {

    let fieldsMapping = ["primaryEmail":"email", "name":"name", "phone":"phone", "addressLocality":"city"]




    Backendless.sharedInstance().userService.loginWithGoogleSignInSDK(googleUser.authentication.idToken, accessToken: googleUser.authentication.accessToken, permissions: nil, fieldsMapping: fieldsMapping, response: { (theUser) -> Void in

        

        let picturePath = "https://picasaweb.google.com/photo/\(googleUser.userID)" //here is where I retrieve the path for profile picture... 

        Backendless.sharedInstance().userService.currentUser.setProperty("profilePicture", object: picturePath)

        Backendless.sharedInstance().userService.currentUser.updateProperties(["profilePicture" : picturePath]) // I think this line is useless, because the path is saved in the line above           

        }) { (error) -> Void in

            print(error.message)

    }

}