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 python验证码滑块图像识别
  • ¥15 QT6颜色选择对话框显示不完整
  • ¥20 能提供一下思路或者代码吗
  • ¥15 用twincat控制!
  • ¥15 请问一下这个运行结果是怎么来的
  • ¥15 单通道放大电路的工作原理
  • ¥30 YOLO检测微调结果p为1
  • ¥15 DS18B20内部ADC模数转换器
  • ¥15 做个有关计算的小程序
  • ¥15 如何用MATLAB实现以下三个公式(有相互嵌套)