title: How to use Facebook iOS SDK on iOS 10
body: <p>I am trying to use Xcode 8 to build a app with Facebook login using Swift 3. When I switch back iOS Simulator 9.3, it works. In iOS 10, I receive this error:</p>
  <pre><code>&quot;&quot;fbauth2:/&quot; The operation couldn’t be completed. (OSStatus error -10814.)&quot;
  </code></pre>
  <p>and</p>
  <pre><code>Optional(Error Domain=com.facebook.sdk.login Code=308 &quot;(null)&quot;)
  </code></pre>
  <p>Anyone have solution for this?</p>
  <h3>Note 1 :</h3>
  <p>After debugging, this problem is FBSDK cant update <code>expect_challange</code>. Function <code>SecItemUpdate</code> inside <code>security.framework</code> not work. This is a problem of IOS 10</p>