Hi, I am using Xcode 8 and Swift 3 in my project to login with “Easy Facebook Login”.
After successfully login the safari view does not close. I have to click in the “Done” button to hide the safariView.
The callback in the AppDelegate method open url is this:
func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {
print(“AppDelegate -> application:openURL iOS10: (url.scheme)”)
//let backendless = Backendless.sharedInstance()
let user = backendless?.userService.handleOpen(url)
if user != nil {
print(“AppDelegate -> application:openURL: user = (user)”)
// HERE, after sucess facebook log-in the safari view doesnt close
}
return true
}
I have created internal ticket BKNDLSS-13317
You should use async backendless!.userService.handleOpen method.
Please try our sample project (see in attachment). It works for us. You could investigate how it is organized and compare with your code.
TestS3EasyLogin.zip (19.29MB)
Hi, thanks to reply.
Now I am using the facebook sdk and the login is working. But I really apreciate if you could check the easy facebook login to workd perfect.
Now I have a question, when the facebook login is sucessfully with params [“email”, “name”, “user_friends”], how can I get the user_friends to save in Backendless user object?
Please read the Property Mapping section of the Backendless Login with Facebook documentation
Well, try another our sample project.
TestS3FacebookSDKLogin.zip (20.21MB)