title: Facebook friends online
body: <p>The question is:
  need a php script put on cron - it will mail me facebook user friends status (online or not). Found two variants:
  1. using fql query $result = $facebook->api(array(
  'query' => "SELECT name,online_presence FROM user WHERE uid IN (
  SELECT uid2 FROM friend WHERE uid1 = me())",
  'method' => 'fql.query'));
  2. using xmpp. Logging to jabber facebook chat and get user presence from it.</p>
  
  <p>But the question is - who to make it using only users facebook login and password (without secret facebook key, application id).
  Just define the user name, password and the script will fetch the friends status.</p>