I am developing an ios app using the Facebook SDK to login.
I have set a LogInViewController as the initial View Controller in the Storyboard, from where the us
I spent a nice half-day banging my head against this issue. In spite of making sure all the delegate methods were present, the FBSDKAccessToken.current() always returned nil.
It turns out that this is because Keychain Sharing is not enabled ( Xcode 8, iOS 10). To fix, go to App -> Capabilities -> Keychain Sharing and turn ON.
Once this is done, you have to still go through the authorization process and return back to the app. Everything should be fine after.