I use firebase to log in user via facebook. All this works great, and I can get an FB user profile picture, although itโs small. Can someone tell me how to get more code that I use:
override func viewDidLoad() { let loginButton = FBSDKLoginButton() loginButton.readPermissions = ["public_profile", "email"] loginButton.delegate = self self.view.addSubview(loginButton) } func loginButton(loginButton: FBSDKLoginButton!, didCompleteWithResult result: FBSDKLoginManagerLoginResult!, error: NSError?) { let credential = FIRFacebookAuthProvider.credentialWithAccessToken(FBSDKAccessToken.currentAccessToken().tokenString) FIRAuth.auth()?.signInWithCredential(credential) { (user, error) in if let user = FIRAuth.auth()?.currentUser { for profile in user.providerData { let photoUrl = profile.photoURL?.absoluteString
(This is fast)
swift facebook-graph-api firebase firebase-authentication facebook-login
Henry brown
source share