如何访问FB Page的新指标“正在谈论这个”? FQL?图形?

时间:2011-10-06 18:50:44

标签: facebook facebook-graph-api facebook-fql

FB将此EdgeRank指标公开(显示在每个页面上) - 现在如何访问它以收集统计数据?

2 个答案:

答案 0 :(得分:6)

几周前,我向Facebook团队询问过这个问题;它似乎在当时被忽视了,他们会调查它。我今天刚刚查看了图谱API,它现在似乎就在那里!这是一种从Graph API请求数据并让它返回JSON格式结果集的快速方法:

如果您只想谈论您的计数,可以使用以下格式: https://graph.facebook.com/[PageID或Page Name]?fields = talking_about_count

<强>示例:

https://graph.facebook.com/techcrunch?fields=talking_about_count
https://graph.facebook.com/8062627951?fields=talking_about_count

<强>返回:

{
   "talking_about_count": 11937,
   "id": "8062627951"
}

您还可以将其与其他字段结合使用:

https://graph.facebook.com/techcrunch?fields=name,category,likes,talking_about_count

返回:

{
   "name": "TechCrunch",
   "category": "Company",
   "likes": 364886,
   "talking_about_count": 11937,
   "id": "8062627951"
}

希望这有帮助, -Paul

答案 1 :(得分:1)

Facebook称这个为“故事”......这就是你如何得到它的:

https://graph.facebook.com/PAGE_ID/insights/page_stories/day?access_token=ACCESS_TOKEN

因此,您将使用要从中收集数据的页面ID替换PAGE_ID,然后使用访问令牌替换ACCESS_TOKEN。

您还可以更改/天?要么/周?或/ days_28?专门收集这些数据......

讲述见解的其他选项包括:

page_stories page_storytellers page_stories_by_story_type page_storytellers_by_story_type page_storytellers_by_age_gender page_storytellers_by_country page_storytellers_by_locale

希望有所帮助!

-Nick