I use Facebook user login to get user email and public profile, but I only get it. Is there any other code that I missed? Most online tutorials are in Obj-C or are outdated. I am using Swift for this project.
RESULT: '<FBSDKLoginManagerLoginResult: 0x7fe6f8c1d510>'
Here is my custom button code
let login = FBSDKLoginManager() login.logInWithReadPermissions(["email", "public_profile"]){ result, error in println("RESULT: '\(result)' ") if error != nil { println("error") }else if(result.isCancelled){ println("result cancelled") }else{ println("success") } }
source share