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

https://graph.facebook.com/125909647492772_502974003098530

你有类似

...
"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

但现在的数丢失。

but now the count is missing.

我做了一些研究图形文件上,但在该方向上唯一的变化,似乎是意见能有现在的意见......和这些评论在一个字段中命名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?

推荐答案

要获取计数,添加摘要= 1底:<?一href=\"https://graph.facebook.com/125909647492772_502974003098530/comments?summary=1\">https://graph.facebook.com/125909647492772_502974003098530/comments?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