title: Facebook Graph API, how to get facebook online friends list?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5666153/facebook-online-friend">Facebook online friend</a>  </p>
  </blockquote>
  
  
  
  <p>I am using the Facebook Graph API and I was wondering if there was anyway to get a list of all the users and their current online-status (i.e Online or Offline) in one call?</p>
  
  <p>Now i'm able to get list of users from Hash book Example, in that return JSONArray don't have any object related to this online-status.</p>
  
  <p><strong>EDIT</strong>: now i'm using this query for getting friends list <code>query = "select name, current_location, uid, pic_square from user where uid in (select uid2 from friend where uid1=me()) order by name";</code> but i want only online friends list.</p>
  
  <p>Thanks for any help!</p>