I have an application in which the user can select a login for FB. My code is mainly based on FB tutorials, and for the most part, the FB application and integration works as expected. The problem that I am facing is that the application does not remember from the moment of launch that the user chose to connect the application to FB. I put the check in AppDelegate.m to check the cached FBSession:
if (FBSession.activeSession.state == FBSessionStateCreatedTokenLoaded) {
Each time I launch the application, the console displays the string โStatus NOTโ The state created by the loaded token. โThis makes me think that I am not doing something right to do this FB registration from launch to launch.
I could use some tips here. What needs to be done to make sure that "FBSession.activeSession.state == FBSessionStateCreatedTokenLoaded" is correct when the application starts?
source share