. */ require_once(INSTALLDIR.'/extlib/facebook/facebook.php'); // Gets all the notices from users with a Facebook link since a given ID function get_facebook_notices($since) { $qry = 'SELECT notice.* ' . 'FROM notice ' . 'JOIN foreign_link ' . 'WHERE notice.profile_id = foreign_link.user_id ' . 'AND foreign_link.service = 2'; // XXX: What should the limit be? return Notice::getStreamDirect($qry, 0, 100, 0, 0, null, $since); } function get_facebook() { $apikey = common_config('facebook', 'apikey'); $secret = common_config('facebook', 'secret'); return new Facebook($apikey, $secret); }