i'm adding Facebook and Google signup in my application but i have this issue
The operation couldn’t be completed. -10814
in the Facebook login and i don't know how to solve it, this is my app delegate code for the openUrl
:
func application(_ application: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any])
-> Bool {
if let fbSDKAppId = FBSDKSettings.appID(), url.scheme!.hasPrefix("fb\(fbSDKAppId)"), url.host == "authorize" {
var shouldOpen :Bool = FBSDKApplicationDelegate.sharedInstance().application(application, open: url, sourceApplication:options[UIApplicationOpenURLOptionsKey.sourceApplication] as! String!,annotation:options[UIApplicationOpenURLOptionsKey.annotation])
return shouldOpen
}
else {
return GIDSignIn.sharedInstance().handle(url,
sourceApplication:options[UIApplicationOpenURLOptionsKey.sourceApplication] as? String,
annotation: [:])
}
}
what i can do?
Best Answer
now I used the latest SDK v4.26.0 downloaded from here and I followed the link for steps to install for FB. and my code is
here i used the login behavior as
FBSDKLoginBehaviorSystemAccount
and I get the error asso in my simulator or device contains no accounts setup in system settings for facebook. then it comes on the following block
if I print the error,
so I changed the loginBehavior from
FBSDKLoginBehaviorSystemAccount
toFBSDKLoginBehaviorWeb
, I got all OP with out error