title: Facebook login shows an additional confirmation popup on iOS 11
body: <p>I have implemented login through facebook using facebook SDK for swift. It works as expected on iOS 10.3, but on iOS 11 it shows and additional popup that asks the user to allow sign in through facebook.com.</p>
  
  <p><a href="https://i.stack.imgur.com/rdmqf.png" rel="noreferrer"><img src="https://i.stack.imgur.com/rdmqf.png" alt="security confirmation"></a></p>
  
  <p>This adds one more step in the login process that slows down the login process. Is there a way how to to configure the app to allow this by default, thus remove the annoying popup?</p>
  
  <p>I am using facebook-sdk-swift 0.2.0 (FBSDK version is 4.26.0) added through cocoa pods.</p>
  
  <p>Configuration in <code>info.plist</code>:</p>
  
  <pre><code>&lt;key&gt;FacebookAppID&lt;/key&gt;
  &lt;string&gt;xxxxxxxxxxxxxxx&lt;/string&gt;
  &lt;key&gt;FacebookDisplayName&lt;/key&gt;
  &lt;string&gt;XXXXX&lt;/string&gt;
  &lt;key&gt;LSApplicationQueriesSchemes&lt;/key&gt;
  &lt;array&gt;
      &lt;string&gt;fbapi&lt;/string&gt;
      &lt;string&gt;fb-messenger-api&lt;/string&gt;
      &lt;string&gt;fbauth2&lt;/string&gt;
      &lt;string&gt;fbshareextension&lt;/string&gt;
  &lt;/array&gt;
  &lt;key&gt;NSAppTransportSecurity&lt;/key&gt;
  &lt;dict&gt;
      &lt;key&gt;NSAllowsArbitraryLoads&lt;/key&gt;
      &lt;true/&gt;
      &lt;key&gt;NSExceptionDomains&lt;/key&gt;
      &lt;dict&gt;
          &lt;key&gt;akamaihd.net&lt;/key&gt;
          &lt;dict&gt;
              &lt;key&gt;NSIncludesSubdomains&lt;/key&gt;
              &lt;true/&gt;
              &lt;key&gt;NSThirdPartyExceptionRequiresForwardSecrecy&lt;/key&gt;
              &lt;false/&gt;
          &lt;/dict&gt;
          &lt;key&gt;facebook.com&lt;/key&gt;
          &lt;dict&gt;
              &lt;key&gt;NSIncludesSubdomains&lt;/key&gt;
              &lt;true/&gt;
              &lt;key&gt;NSThirdPartyExceptionRequiresForwardSecrecy&lt;/key&gt;
              &lt;false/&gt;
          &lt;/dict&gt;
          &lt;key&gt;fbcdn.net&lt;/key&gt;
          &lt;dict&gt;
              &lt;key&gt;NSIncludesSubdomains&lt;/key&gt;
              &lt;true/&gt;
              &lt;key&gt;NSThirdPartyExceptionRequiresForwardSecrecy&lt;/key&gt;
              &lt;false/&gt;
          &lt;/dict&gt;
      &lt;/dict&gt;
  &lt;/dict&gt;
  &lt;key&gt;CFBundleURLTypes&lt;/key&gt;
  &lt;array&gt;
      &lt;dict&gt;
          &lt;key&gt;CFBundleURLName&lt;/key&gt;
          &lt;string&gt;facebook&lt;/string&gt;
          &lt;key&gt;CFBundleURLSchemes&lt;/key&gt;
          &lt;array&gt;
              &lt;string&gt;fbxxxxxxxxxxxxxxx&lt;/string&gt;
          &lt;/array&gt;
      &lt;/dict&gt;
  &lt;/array&gt;
  </code></pre>
  
  <p>Code in <code>AppDelegate</code>:</p>
  
  <pre><code>func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -&gt; Bool {
      return SDKApplicationDelegate.shared.application(application, didFinishLaunchingWithOptions: launchOptions)
  }
  
  func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -&gt; Bool {
      return SDKApplicationDelegate.shared.application(app, open: url, options: options)
  }
  </code></pre>
  
  <p><code>LoginController</code> has a custom login button with this in handler:</p>
  
  <pre><code>    let loginManager = LoginManager()
      loginManager.loginBehavior = .native
      loginManager.logIn([ .publicProfile, .userFriends, .email, .custom("user_location"), .custom("user_education_history"), .custom("user_work_history") ], viewController: self) { loginResult in
      }
  </code></pre>
  
  <p>I created an app from scratch to test it, shared on <a href="https://github.com/MilanNosal/MilanTestApp" rel="noreferrer">GitHub</a>. Still does the same.</p>