Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>This is an incomplete answer, but this is what I've gotten so far:</p> <p>First: <a href="http://www.facebook.com/developers/" rel="nofollow noreferrer">add the developer application on FB</a>. Then create a new application. Call it whatever you want.</p> <p>Second: <a href="http://svn.facebook.com/svnroot/platform/clients/packages/facebook-platform.tar.gz" rel="nofollow noreferrer">Download the PHP client.</a> Dump it somewhere on your webhost, i.e. /facebook/</p> <p>Third: Copy the following beginner code to get yourself started into a php file:</p> <pre><code> &lt;?php require_once('facebook/php/facebook.php'); $facebook = new Facebook("YOUR_API_KEY","YOUR_SECRET_KEY"); $result = $facebook-&gt;api_client-&gt;fql_query("SELECT status FROM user WHERE uid = YOURIDNUMBER"); // OR --- they both get the same data $result = $facebook-&gt;api_client-&gt;users_getInfo(YOURIDNUMBER,'status'); print_r($result); echo "&lt;pre&gt;Debug:" . print_r($facebook,true) . "&lt;/pre&gt;"; // debug info ?&gt; </code></pre> <p><strong>Other info:</strong></p> <ul> <li>You must be logged in and have the application added. OR you give the application offline_access permissions and have the aapplication added.</li> <li>You can add offline_access by typing in the following url: <a href="http://www.facebook.com/authorize.php?api_key=YOUR_API_KEY&amp;v=1.0&amp;ext_perm=offline_access" rel="nofollow noreferrer">http://www.facebook.com/authorize.php?api_key=YOUR_API_KEY&amp;v=1.0&amp;ext_perm=offline_access</a></li> <li>more info on permissions found here: <a href="http://wiki.developers.facebook.com/index.php/Extended_permissions" rel="nofollow noreferrer">http://wiki.developers.facebook.com/index.php/Extended_permissions</a></li> <li>I'm at a stopping point: anything my program calls the fql query or users_getInfo, my page stops executing the php? I'm guessing there are a limited amount of calls for new applications? I've never done any FB development so I'm completely new to it. Maybe make the call and save your recent status (or most recent statuses) in your own DB to prevent excessive calls to the API?</li> </ul> <p>I hope this helps someone get started! </p> <p><strong>EDIT:</strong> It seems that FB won't let you access someones status, even if the offline_access is on, unless you are that person or their friend (depending on their privacy settings).</p> <p>I did however, finally manage to find the RSS feed in the new profile version: <a href="http://www.new.facebook.com/minifeed.php?filter=11" rel="nofollow noreferrer">http://www.new.facebook.com/minifeed.php?filter=11</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload