Facebook图表api评论数

Facebook图表api评论数

本文介绍了Facebook图表api评论数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎Facebook改变了帖子的结果,几个星期前可以直接从帖子中读取评论数。

seems Facebook changed the result of posts, few weeks ago it was possible to read the comment count from the post directly

你有一些像

...
"comments": {
"data": [
  {
    "id": "502974003098530_78616446",
    "from": {
      "name": "Mathias Fritz",
      "id": "526559276"
    },
    "message": "saugeil!",
    "can_remove": false,
    "created_time": "2013-03-26T14:58:01+0000",
    "like_count": 1,
    "user_likes": false
  }
],
"paging": {
  "cursors": {
    "after": "MQ==",
    "before": "MQ=="
  }
},
"count": 1

但现在计数不足。

我对图形文档进行了一些研究,但是这个方向的唯一变化似乎是评论现在可以发表评论,而这些评论被算在一个字段中命名为comment_count。

I did some research on the graph documentation but the only change in that direction seems to be that comments can have comments now... and those comments are counted in a field named comment_count.

还有一种方法来获取总评论数?

Is there still a way to get the total comment count?

推荐答案

p>要获取计数,请在最后添加?summary = 1:

To get the count, add ?summary=1 at the end: https://graph.facebook.com/125909647492772_502974003098530/comments?summary=1

这篇关于Facebook图表api评论数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 20:57