Facebook SDK v4.0 for iOS - FBSDKProfile currentProfile not being set

前端 未结 8 2630
星月不相逢
星月不相逢 2020-12-25 13:35

I\'ve just \"upgraded\" my Facebook SDK to 4.0 for my iOS app.

I\'ve got the log in working okay, however, according to the documentation, I\'m now supposed to use

8条回答
  •  暖寄归人
    2020-12-25 14:24

    Swift 4 version,

    FBSDKProfile.loadCurrentProfile(completion: {
            profile, error in
            let url = profile?.imageURL(for: FBSDKProfilePictureMode.square, size:  self.imageview.frame.size)
        })
    

提交回复
热议问题