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
If you already tried the upon solutions, but still have the problem, try this.
My co-programmer and I are using the LoginManager().login method provided in Facebook Swift SDK. (Xcode8, Swift 3, iOS 10)
One possible action that caused that issue is when you login successfully and kill the app immediately, then open your app again and the AccessToken.current returns nil. After login, if you wait 20 seconds or longer (we are not sure the exact waiting time, we waited for 7-20 seconds) and kill the app, the problem seemed to be solved.
We are not sure why this is happened, but this solved our problem, and our guess is that there may be a network delay or a bug.