title: Facebook authorization fails on iOS6 when switching FB account on device
body: <p>I'm using die Facebook SDK 3.1.1 to implement FB Connect in my iOS application. This works fine in the simple case with either the new FB integration (logged in on iOS) or falling back to the normal authorization via web view (I do not have the native Facebook application installed in both cases).
  The problem occurs when I switch the account on iOS level. Logging out and logging in with a different FB user account.</p>
  
  <p>To log in/authorize I perform:</p>
  
  <pre><code>[FBSession openActiveSessionWithReadPermissions:nil allowLoginUI:allowLoginUI
                                       completionHandler:^(FBSession *session, FBSessionState state, NSError *error) {
                                           [self sessionStateChanged:session state:state error:error];
                                       }];
  </code></pre>
  
  <p>If then get a FBSessionStateClosedLoginFailed every time even though I perform a <code>closeAndClearTokenInformation</code> when that state is reached:</p>
  
  <pre><code>- (void)sessionStateChanged:(FBSession *)session
                    state:(FBSessionState) state
                    error:(NSError *)error
  {
      NSLog(@"Session State Changed: %u", [[FBSession activeSession] state]);
      switch (state) {
          case FBSessionStateOpen:
              break;
          case FBSessionStateClosed:
          case FBSessionStateClosedLoginFailed:
              NSLog(@"FBSessionStateClosedLoginFailed ERROR: %@", [error description]);
              [[FBSession activeSession] closeAndClearTokenInformation];
              break;
          default:
              break;
  }
  </code></pre>
  
  <p>However, I receive the same state on every retry. My log says the following:</p>
  
  <pre><code>FBSDKLog: FBSession **INVALID** transition from FBSessionStateCreated to FBSessionStateClosed
  FBSDKLog: FBSession transition from FBSessionStateCreated to FBSessionStateCreatedOpening 
  FBSDKLog: FBSession transition from FBSessionStateCreatedOpening to FBSessionStateClosedLoginFailed Session State Changed: 257
  FBSessionStateClosedLoginFailed TOKEN: (null)
  FBSessionStateClosedLoginFailed ERROR: Error Domain=com.facebook.sdk Code=2 "The operation couldn’t be completed. (com.facebook.sdk error 2.)" UserInfo=0xb24cc20 {com.facebook.sdk:ErrorLoginFailedReason=com.facebook.sdk:ErrorLoginFailedReason}
  </code></pre>
  
  <p>Can anyone reproduce this or has any idea where the problem might lie?</p>