Support » Plugin: Recent Facebook Posts » only showing items that were 'shared' on the facebook wall.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi Danny,

    I seem to have the same problem.


    for me is only showing normal posts, not shared ones!

    I have this problem too. As a quick hack, Plugins -> Editor -> (Recent Facebook Posts) -> Edit recent-facebook-posts/classes/class-rfb.php

    Find the function renew_cache_file(), and I’ve changed a few lines as follows:

    $apiResult = $fb->api(trim($opts[‘fb_id’]) . ‘/posts?with=message&limit=250′);

    if(!$apiResult or !is_array($apiResult) or !isset($apiResult[‘data’]) or !is_array($apiResult[‘data’])) { return false; }

    $data = array();
    foreach($apiResult[‘data’] as $p) {
    if(!in_array($p[‘type’], array(‘status’, ‘photo’, ‘video’, ‘link’))) { continue; }

    In the first line, it used to read “feed?with=message” rather than “posts?with=message”; and in the last one I added the ‘link’ option so link posts are included.

    As I say, it’s a bit of a hack, having played with the Facebook API Explorer, however I can’t find the full API documentataion so don’t know why the plugin author has used the method which has been used, nor really understand the API call syntax at all! Works (for me!) though…

    Just to add, I’ve looked at the plugin source now (here), and see that the code was changed between v1.1.1 and 1.1.2 to switch from ‘posts’ to ‘feed’.

    Thanks, olliedc! That is a significant improvement and new posts are now being displayed.

    Plugin Author Danny van Kooten


    Hey all,

    In version 1.2 of Recent Facebook Posts I’ve reverted back to using the ‘posts’ method from Facebooks API, as in olliedc’s code snippet. I’ve also added the link post type, so those are included as well.

    Thanks for your patience, I’ve been crazy busy the last few months.


Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘only showing items that were 'shared' on the facebook wall.’ is closed to new replies.