获取每个类型的反应的Facebook反应total_count [英] Get Facebook reactions total_count for each type of reaction

查看:126
本文介绍了获取每个类型的反应的Facebook反应total_count的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的意思是说,有些东西如下:

 summary:{
total_count:51,
total_count_HAHA 23,
total_count_LOVE:28,
viewer_reaction:NONE
}

现在只有total_count。

解决方案

  20531316728_10154835146021729?fields = 
reactions.type(LIKE).summary(total_count).limit(0).as(like),
reactions.type(LOVE).summary(total_count).limit(0) .as(love),
reactions.type(WOW).summary(total_count).limit(0).as(wow),
reactions.type(HAHA).summary(total_count).limit 0).as(haha),
reactions.type(SAD).summary(total_count).limit(0).as(sad),
reactions.type(ANGRY).summary(total_count)限制(0).as(愤怒)


In Graph Api 2.6 with the new Reactions edge, Is there way to get the summary that include total_count for each reaction ?

I mean, something like this :

"summary": {
      "total_count": 51,
      "total_count_HAHA":23,
      "total_count_LOVE":28,
      "viewer_reaction": "NONE"
    }

there is only "total_count" right now.

解决方案

20531316728_10154835146021729?fields=
    reactions.type(LIKE).summary(total_count).limit(0).as(like),
    reactions.type(LOVE).summary(total_count).limit(0).as(love),
    reactions.type(WOW).summary(total_count).limit(0).as(wow),
    reactions.type(HAHA).summary(total_count).limit(0).as(haha),
    reactions.type(SAD).summary(total_count).limit(0).as(sad),
    reactions.type(ANGRY).summary(total_count).limit(0).as(angry)

这篇关于获取每个类型的反应的Facebook反应total_count的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆