Facebook刚刚发布了新的反应按钮,但我无法找到一种方法从Graph API v2.5获取此信息,因为/ likes边缘只返回交互的总次数。使用图形API获取Facebook反应
有没有人想出了一个方法来获得每个帖子的详细反应?
Facebook刚刚发布了新的反应按钮,但我无法找到一种方法从Graph API v2.5获取此信息,因为/ likes边缘只返回交互的总次数。使用图形API获取Facebook反应
有没有人想出了一个方法来获得每个帖子的详细反应?
编辑:截至4月12日在2016年Facebook已经发布了反应终点上岗作为GraphAPI
GET /v2.6/{object-id}/reactions他们的V2.6版本的一部分
更多信息可以在这里找到:https://developers.facebook.com/docs/graph-api/reference/post/reactions
编辑完
我不知道如果Facebook已经发表了这个还没有,但反应的信息是当前可用的图形API V2.5。我粘贴了下面的回复。我通过点击洞察终点来实现这一结果。对于下面的响应中列出的每个对象,请查看'id'属性,它具有更详细的查询端点。
GET /v2.5/{object-id}/insights
回应:
{
"name": "post_reactions_like_total",
"period": "lifetime",
"values": [
{
"value": 0
}
],
"title": "Lifetime Like Reactions",
"description": "Lifetime: The total number of like reactions to your post.",
"id": "{node_id}/insights/post_reactions_like_total/lifetime"
},
{
"name": "post_reactions_love_total",
"period": "lifetime",
"values": [
{
"value": 0
}
],
"title": "Lifetime Love Reactions",
"description": "Lifetime: The total number of love reactions to your post.",
"id": "{node_id}/insights/post_reactions_love_total/lifetime"
},
{
"name": "post_reactions_wow_total",
"period": "lifetime",
"values": [
{
"value": 0
}
],
"title": "Lifetime Wow Reactions",
"description": "Lifetime: The total number of wow reactions to your post.",
"id": "{node_id}/insights/post_reactions_wow_total/lifetime"
},
{
"name": "post_reactions_haha_total",
"period": "lifetime",
"values": [
{
"value": 0
}
],
"title": "Lifetime Haha Reactions",
"description": "Lifetime: The total number of haha reactions to your post.",
"id": "{node_id}/insights/post_reactions_haha_total/lifetime"
},
{
"name": "post_reactions_sorry_total",
"period": "lifetime",
"values": [
{
"value": 0
}
],
"title": "Lifetime Sorry Reactions",
"description": "Lifetime: The total number of sorry reactions to your post.",
"id": "{node_id}/insights/post_reactions_sorry_total/lifetime"
},
{
"name": "post_reactions_anger_total",
"period": "lifetime",
"values": [
{
"value": 0
}
],
"title": "Lifetime Anger Reactions",
"description": "Lifetime: The total number of anger reactions to your post.",
"id": "{node_id}/insights/post_reactions_anger_total/lifetime"
},
{
"name": "post_reactions_by_type_total",
"period": "lifetime",
"values": [
{
"value": {
"like": 0,
"love": 0,
"wow": 0,
"haha": 0,
"sorry": 0,
"anger": 0
}
}
],
"title": "Lifetime Reactions by type",
"description": "Lifetime: The total number of reactions to your post by type.",
"id": "{node_id}/insights/post_reactions_by_type_total/lifetime"
}
这是从一张评论的照片。我无法在我看到的照片上找到它......并且发现很难找到我的其中一个评论的ID以进行仔细检查。 –
确定研究了更多...洞察仅在页面/域名/帖子和仅有30个或更多喜欢的帖子中可用。 src:https://developers.facebook.com/docs/graph-api/reference/v2.5/insights/ –
应该添加一个注释,即洞察API具有相当长的延迟时间,并且如果有人改变了它,也会加倍计数反应(如果某人首先做出爱情反应,然后将其改变为哈哈,那么爱情和哈哈都会是1)。如果您试图获得实时结果,您最好使用实际的反应API,但不幸的是,您必须自己解析总数 – dprogramz
GraphAPI(2.6)的下一个版本将在三月/四月期间发布 - 所以我期望在那里看到它。
新反应图片:http://i.stack.imgur.com/d6kcp.jpg
有没有关于这个话题的任何信息,所以我想补充出头。
GraphAPI(2.6)的下一个版本将在三月/四月期间发布 - 所以我期望在那里看到它。 (谢谢贾斯汀鲍勒)
现在在图表api 2.5新Facebook的反应不计算。 如果你看看帖子,喜欢你看不到它们,所以我们必须等待新的api版本。
现在还没有计算出新的反应。当前的API仅显示类似按钮的计数,哇,悲伤,ETC点击数不计入喜欢桶中
这些反应已通过洞察API v2.5获得。您可以通过post_reactions_by_type_total
边缘在页面级别通过page_actions_post_reactions_total
边缘在帖子级别获得它们。
任何想法如何调用此API的实时视频?我的意思是我应该为此做一个应用程序,或者有任何其他方式像webhook或什么,请告诉我如何开始 – Rickie
的Facebook刚刚发布的图形API 2。6,反应终点可像这样
GET /v2.6/{object-id}/reactions
哪个返回类似
{
"data": [
{
"id": "ACCOUNT-ID",
"name": "ACCOUNT-NAME",
"type": "HAHA"
},
{
"id": "ACCOUNT-ID",
"name": "ACCOUNT-NAME",
"type": "LIKE"
}
],
"paging": {
"cursors": {
"before": "TkRZAMU9EWTROakF6TmpBM01qYzJPak2TnpnNE5qUTRNRE0zT1RFek16RXkZD",
"after": "TVRBd01EQTNOekEwTWpnME1EUTJPakUwTazJNVFl4TXc9PQZDZD"
}
}
}
更多的相关信息在这里:https://developers.facebook.com/docs/graph-api/reference/post/reactions/
尝试
GET /v2.5/{post_id}/insights/post_reactions_by_type_total
它返回
{
"data": [
{
"name": "post_reactions_by_type_total",
"period": "lifetime",
"values": [
{
"value": {
"like": 9,
"love": 0,
"wow": 1,
"haha": 0,
"sorry": 0,
"anger": 0
}
}
],
"title": "Daily total post reactions by type.",
"description": "Daily total post reactions by type.",
"id": "{post_id}/insights/post_reactions_by_type_total/lifetime"
}
],
}
我不得不使用Facebook的图形API 2.3相同的一些运气,而不是每个请求
这只会工作,如果你有一个页面访问令牌。其他用例可能无法访问其中一个。 – Dean
没有办法,截至目前,反应正在今天推出。它很可能很快会来到API。 – luschn
当这些功能可用时,facebook上没有任何官方词汇,但我相信他们将完全消除反应或提供获取数据的优势。 – jimplode
只是等待它弹出的变化日志:https://developers.facebook.com/docs/apps/changelog – luschn