Note that there are some explanatory texts on larger screens.

plurals
  1. POfilter facebook graph results
    primarykey
    data
    text
    <p>I'm using this URL to retrieve facebook feed of certain user: <a href="https://graph.facebook.com/" rel="nofollow">https://graph.facebook.com/</a>{id}/feed?access_token={access_tocken}</p> <p>and then getting all the photos by searching for type "photo" and searching for type "status" or "link" and take the "message" of them.</p> <p>the problem is that some of the result are posts that the user posts on closed group or something else that is private and not shows on the user public wall. it also return posts that other users wrote on his wall.</p> <p>and the question is: what i need to change there so that the returned results will include only(!) pictures that the user uploaded or taged on then, links that the user posted and statuses that the user posted on his public wall... and nothing else...???</p> <p>Thanks.</p> <p>this is part on my code that handle all of this:</p> <pre><code>$graph_url = "https://graph.facebook.com/" . $facebook_id . "/feed?access_token=" . $facebook_at; $facebook_feeds = json_decode(file_get_contents($graph_url),true); $facebook_feeds = $facebook_feeds['data']; $fbIndex = 0; foreach ($facebook_feeds as $facebook_feed) { $feed = new Feed(); $feed-&gt;network = 'facebook'; $feed-&gt;type = $facebook_feed['type']; $feed-&gt;timestamp = strtotime($facebook_feed['created_time']); if ( $feed-&gt;type == 'photo') $feed-&gt;content = str_replace("_s.jpg", "_b.jpg", $facebook_feed['picture']); else if (($feed-&gt;type == 'status' || $feed-&gt;type == 'link') &amp;&amp; !empty($facebook_feed['message'])) $feed-&gt;content = $facebook_feed['message']; else continue; $feeds[] = $feed; if (++$fbIndex == 10) break; } </code></pre>
    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. This table or related slice is empty.
    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