facebookfacebook-graph-api

Get Facebook reactions total_count for each type of reaction


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.


Solution

  • 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)