Support » Plugin: Social » not more than 25 FB Comments

  • Hi,

    first – this plugin is great.

    Yesterday i share a post to FB and on FB the post has 64 Comments.

    But the Plugin pulls only 25 Comments in my Blog? Any Ideas? With any manualy agregition he finds only the 25 imported comments but no new comments…

    Thanx and Cheers

Viewing 4 replies - 1 through 4 (of 4 total)
  • @deraleks: I can confirm this issue as well (Social v2.11, WP v3.9.1).

    I think the issue may have to do with Facebook depreciating API v1.0 in favor of v2.0.

    Anyway, it looks like the aggregate_by_api function (in lib/social/service/facebook.php) doesn’t pass an explicit limit function, which means that Facebook defaults to a limit of 25 (
    ). It also doesn’t look like the aggregation function does any paging for comments (there is some paging support for “Likes”)

    For posts where there are more than 25 comments, there is a “paging” and “next” field that should be followed:

    "paging": {
        "cursors": {
          "after": "MjU=",
          "before": "MQ=="
        "next": "{FB_POST_ID}/comments?fields=parent,message,from,created_time,can_comment&filter=stream&limit=25&after=MjU="

    Adding ‘limit’=>’100’ to the end of the array in line 255 of lib/social/service/facebook.php seems to provide an interim solution (at least up to 100 comments):

    $request = $this->request($account, $broadcasted_id.'/comments', array('filter' => 'stream', 'fields' => 'parent,message,from,created_time,can_comment', 'limit'=>'100'));

    A pull request would be awesome!

    Deal…I work on it when I get to my normal computer.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘not more than 25 FB Comments’ is closed to new replies.