title: How logout the Facebook using storyboard?
body: <p>I call:</p>
  
  <pre><code>    [[FacebookRequests sharedInstance] facebookLogout];
  </code></pre>
  
  <p>What contain:</p>
  
  <pre><code>     [FBSession.activeSession close];
       [FBSession.activeSession  closeAndClearTokenInformation];
       FBSession.activeSession = nil;
  </code></pre>
  
  <p>And got error, but I quit Facebook, that is wrong?</p>
  
  <pre><code>Error Domain=com.facebook.sdk Code=5 "The operation couldn’t be completed. (com.facebook.sdk error 5.)" UserInfo=0x10a441660 {com.facebook.sdk:HTTPStatusCode=400, com.facebook.sdk:ParsedJSONResponseKey={
  body =     {
      error =         {
          code = 2500;
          message = "An active access token must be used to query information about the current user.";
          type = OAuthException;
      };
  };
  code = 400;
  </code></pre>
  
  <p>}}</p>
  
  <p>UPDATE</p>
  
  <p>I fixes it, after my</p>
  
  <pre><code> [FBSession.activeSession close];
   [FBSession.activeSession  closeAndClearTokenInformation];
   FBSession.activeSession = nil;\
  </code></pre>
  
  <p>automatically called part of facebookLogin from block ^(FBSession *session, FBSessionState state, NSError *error) , and it tried to get info where I still not have active scission, so i add 'if (FBSession.activeSession.isOpen)' and error not comes anymore</p>
  
  <pre><code>- (void)facebookLogin
  {
   if (FBSession.activeSession.state == FBSessionStateOpen
      || FBSession.activeSession.state == FBSessionStateOpenTokenExtended)
  {
       NSLog(@"fb session opened");
  } else   {
       [FBSession openActiveSessionWithReadPermissions:@[@"basic_info", @"user_birthday", @"email"]
                                         allowLoginUI:YES
                                    completionHandler:
       ^(FBSession *session, FBSessionState state, NSError *error) {
           if (error) {
           NSLog(@"%@", error.description);
           }
             if (FBSession.activeSession.isOpen) {
           [self getPermissions];
            }
            [self sessionStateChanged:session state:state error:error];
       }];
  }
  </code></pre>
  
  <p>}</p>