douyue3800 2015-02-25 16:09
浏览 64
已采纳

如何从“post_stories_by_action_type”facebook图表api洞察中获取准确的数据

i am trying to get the count of the page post shares uisng graph api [how many times people shared this page post], based on facebook documentation the graph API request should be like this : page-id_post-id/insights/post_stories_by_action_type/lifetime

this is the returned output from graph api :

{
"id": "page-id_post-id/insights/post_stories_by_action_type/lifetime",
"name": "post_stories_by_action_type",
"period": "lifetime",
"values": [
{
"value": {
"like": 345,
"comment": 65,
"share": 27
}
}
],
"title": "Lifetime Post Stories by action type",
"description": "Lifetime: The number of stories created about your Page post, by action type. (Total Count)"
}

The problem is that, the returned number is not accurate, for example the shares count from the request is 27 but facebook shows people made 31 shares, also the other counts not accurate.

What should i do to get the accurate count of page post shares ?

Important notes :

1) in the documentation the data in "post_stories_by_action_type" are available in real time (facebook refresh the data each 15 minutes).

2) the post that returned this result is too old and people don't interact with it at the moment (so there is no new insights each 15 minutes).

Thanks in advance.

  • 写回答

1条回答 默认 最新

  • du0173 2015-03-12 07:48
    关注

    I am answering myself here in case anyone faced this problem, to get accurate shares count use this request : page-id_post-id?fields=shares

    P.S. this answer by "Shayne Xin Wang" from Facebook Developer Community.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站
  • ¥50 成都蓉城足球俱乐部小程序抢票
  • ¥15 yolov7训练自己的数据集
  • ¥15 esp8266与51单片机连接问题(标签-单片机|关键词-串口)(相关搜索:51单片机|单片机|测试代码)
  • ¥15 电力市场出清matlab yalmip kkt 双层优化问题
  • ¥30 ros小车路径规划实现不了,如何解决?(操作系统-ubuntu)