Using the LoginManager from the iOS SDK to log in, follow these steps:
let loginManager = LoginManager() loginManager.logIn([.publicProfile, .email], viewController: self) { (loginResult) in
The login dialog opens facebook.com through Safari, which has a button for
Log in to the Facebook app
When I click Continue on a Facebook application, I go back to my application, however the Login dialog is not rejected, although loginResult returns .success .
This is what is displayed after returning to my application after a successful login: 
The only option is to click Cancel. It looks like the Login SFAuthenticationViewController dialog box, which currently contains 0 Google search results.
It seems that the problems that other people encountered in the past were that in their AppDelegate they did not AppDelegate appropriate processing of the flow of permissions in application:openURL:options: but this was successfully called like this:
@available(iOS 9.0, *) func application(_ application: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any]) -> Bool { print("application open url\n\(url)\noptions \(options)") if url.absoluteString.hasPrefix("fb") { print("Finishing Facebook log in flow") return SDKApplicationDelegate.shared.application(application, open: url, options: options) } else { print("Finishing Google sign in flow") return GIDSignIn.sharedInstance().handle(url, sourceApplication:options[UIApplicationOpenURLOptionsKey.sourceApplication] as? String, annotation: [:]) } }
The only thing I can think of is some incompatibility issues, since I use Swift 4 on the beta version of iOS 11 Developer and the fact that there are no online results for the SFAuthenticationViewController , which is apparently being used.
I am not sure why the dialogue will not be automatically fired.
Update:
I created a completely new, empty application with only one button and the FacebookCore and FacebookLogin dependencies, and the problem still persists.
The following steps followed: