title: Logout of Facebook in app using Facebook ios SDK
body: <p>I have integrated Facebook login in my app and therfore user can login with both my app account and also Facebook and do corresponding actions.For Facebook integration I have added Facebook SDK.Now when Logout button is clicked in my app it has to clear all the credentials of Facebook Account.I have gone for :</p>
  
  <pre><code>-(IBAction)btnlogOutClicked:(id)sender
  {
    [appDelegate fbDidlogout]; 
  }
  -(void)fbDidlogout
  {
      FBSession* session = [FBSession activeSession];
      [session closeAndClearTokenInformation];
      [session close];
      [FBSession setActiveSession:nil];
  
  
  }
  </code></pre>
  
  <p>But when I again click on button I m redirected directly to my  account without going to Facebook Login page.</p>
  
  <p>How can I logout of Facebook?</p>