获取Facebook发布所有反应在单一图形API请求中计数 [英] Getting Facebook Post all Reactions Count in single Graph API request
问题描述
由于Facebook发布了{NONE,LIKE,LOVE,WOW,HAHA,SAD,ANGRY}功能的新功能,但我无法确定在单图API请求中获得所有反应。
As Facebook released the new reaction{NONE, LIKE, LOVE, WOW, HAHA, SAD, ANGRY} feature for post, but I can not figure out to get all reaction counts in single graph API request.
有没有人想出一个方法来在单个请求中得到每个帖子的详细反应?
Has anyone figured out a way to get this detailed reactions per post in single request?
推荐答案
p> @CBroe引入的方法似乎在使用多ID读取请求工作。
The approach introduced by @CBroe appears to be working using Multiple ID Read Requests.
?ids = 7175346442_10153799389241443,7175346442_10153799470326443& fields = reactions.type(LOVE).limit(0).summary(total_count).as reactions_love),reactions.type(WOW).limit(0)。总结(TOTAL_COUNT)。如(reactions_wow),reactions.type(HAHA).limit(0)。总结(TOTAL_COUNT)。如(reactions_haha),...
?ids=7175346442_10153799389241443,7175346442_10153799470326443&fields=reactions.type(LOVE).limit(0).summary(total_count).as(reactions_love),reactions.type(WOW).limit(0).summary(total_count).as(reactions_wow),reactions.type(HAHA).limit(0).summary(total_count).as(reactions_haha),...
从 Facebook Graph API Explorer :
一旦收集了帖子,就可以使用单个请求读取按类型分组的反应计数。请注意,多ID读取请求模式中的ID的当前限制为50。
Once a collection of posts is retrieved, one should be able to read reaction counts grouped by type using a single request. Note, the current limit of ids in the Multiple ID Read Request pattern is 50.
这篇关于获取Facebook发布所有反应在单一图形API请求中计数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!