title: Android Facebook SDK: Check if the user is logged in or not
body: <p>I'm have a feature on my Android app where the user authorizes the app and shares a link.</p>
  
  <p>I also need to give an option for the user to logout of facebook and I need to conditionally disable this button if the user is not logged int (or not authorized the app).</p>
  
  <p>I can't seem to find the API call on the <a href="http://developers.facebook.com/docs/reference/androidsdk/" rel="noreferrer">Android SDK</a> that would let me ask FB if the user is logged in or not.</p>
  
  <p>What I have found is <a href="http://developers.facebook.com/docs/reference/androidsdk/helper/" rel="noreferrer"><code>getAccessExpires()</code></a>:</p>
  
  <blockquote>
    <p>Retrieve the current session's expiration time (in milliseconds since
    Unix epoch), or 0 if the session doesn't expire or doesn't exist.</p>
  </blockquote>
  
  <p>Will checking if the session equals 0 be the way to go? Or is there something I'm missing?</p>