title: Facebook SDK 4 for Android - how to log out programmatically
body: <p>Recently, Facebook released SDK 4 with new and cool updates. I tried to switch into SDK4 to use new features, however, I am struggling with the Login feature of Facebook. </p>
  
  <p>So far, to log out Facebook programmatically, I used : </p>
  
  <pre><code>Session session = Session.getActiveSession();
  session.closeAndClearTokenInformation();
  </code></pre>
  
  <p>But SDK4 seems not to support Session anymore, and in official docs, they mention: </p>
  
  <blockquote>
    <p>There are two ways to implement Facebook login on Android:</p>
    
    <p>LoginButton class - Which provides a button you can add to your UI. It follows the current access token and can log people in and out.</p>
  </blockquote>
  
  <p>Well, seems there's no way to log out Facebook programmatically except using LoginButton.
  Anyone have any idea, please share it here.</p>