Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here's what i did</p> <p>1) Login to facebook.</p> <p>2) Grant your application offline access to your account: <a href="http://m.facebook.com/authorize.php?api_key=YOUR_API_KEY&amp;v=1.0&amp;ext_perm=offline_access" rel="nofollow noreferrer">http://m.facebook.com/authorize.php?api_key=YOUR_API_KEY&amp;v=1.0&amp;ext_perm=offline_access</a></p> <p>3) Add read stream permission <a href="http://m.facebook.com/authorize.php?api_key=YOUR_API_KEY&amp;v=1.0&amp;ext_perm=read_stream" rel="nofollow noreferrer">http://m.facebook.com/authorize.php?api_key=YOUR_API_KEY&amp;v=1.0&amp;ext_perm=read_stream</a></p> <p>4) Generate a key code <a href="http://www.facebook.com/code_gen.php?v=1.0&amp;api_key=YOUR_API_KEY" rel="nofollow noreferrer">http://www.facebook.com/code_gen.php?v=1.0&amp;api_key=YOUR_API_KEY</a></p> <p>5) Run this script once and copy the "session_key".</p> <pre><code>$facebook = new Facebook($api_key, $api_secret); $infinite_key = $facebook-&gt;api_client-&gt;auth_getSession(YOUR_KEY_CODE); print_r($infinite_key); </code></pre> <p>6) Plug and play!</p> <pre><code>$facebook-&gt;api_client-&gt;user = YOUR_FACEBOOK_USER_ID $facebook-&gt;api_client-&gt;session_key = YOUR_INFINITE_KEY $facebook-&gt;api_client-&gt;expires = 0; $feed = $facebook-&gt;api_client-&gt;stream_get(YOUR_FACEBOOK_USER_ID, FAN_PAGE_ID); </code></pre> <p>So bascially, this will grab the feed from your "perspective" but filter it only to show items from the specified Fan page.</p> <p>Disclaimer: This works, but I'm not sure whether this is a "supported" method for grabbing data, or even allowed at all. </p> <p>References:</p> <p><a href="http://www.emcro.com/blog/2009/01/facebook-infinite-session-keys-no-more/" rel="nofollow noreferrer">http://www.emcro.com/blog/2009/01/facebook-infinite-session-keys-no-more/</a></p> <p><a href="http://blog.jylin.com/2009/10/01/loading-wall-posts-using-facebookstream_get/" rel="nofollow noreferrer">http://blog.jylin.com/2009/10/01/loading-wall-posts-using-facebookstream_get/</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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