title: Facebook iOS SDK 3.1.1 "closeAndClearTokenInformation" method no working
body: <p>I just upgraded from Facebook iOS SDK 3.0.X to 3.1.1, and rewrote some code... </p>
  
  <p>As per Facebook documentation for the logout workflow (https://developers.facebook.com/docs/tutorials/ios-sdk-tutorial/authenticate/#step3), I'm calling the <strong>closeAndClearTokenInformation</strong> method of the <strong>FBSession.activeSession</strong> object. </p>
  
  <p>This seems to have no effect on the Facebook session state, because checking it right after the call still returns an open session.</p>
  
  <p>As it stands, once my application logs in with Facebook, it doesn't logout.</p>
  
  <p><strong>[UPDATE 1]</strong></p>
  
  <p>As requested, here's the code I use to check the session state:</p>
  
  <pre><code>if (FBSession.activeSession.state == FBSessionStateCreatedTokenLoaded &amp;&amp; FBSession.activeSession.isOpen)
   //logged in
  else
   //not logged in
  </code></pre>
  
  <p><strong>[UPDATE 2]</strong></p>
  
  <p>Changed my logic a bit... Altered my original code to:</p>
  
  <pre><code>if (FBSession.activeSession.isOpen)
   //logged in
  else
   //not logged in
  </code></pre>
  
  <p>Because <strong>FBSession.activeSession.state</strong> was returning <strong>FBSessionStateOpen</strong>, not <strong>FBSessionStateCreatedTokenLoaded</strong>.</p>