asp.net - how can i get Total like From A post in Facebook with Graph Api? -
how total likes post graph api url ?
here this link
return: array of objects containing id , name fields. requesting summary=1 return summary object containing total_count of likes.
in fb api explorer try fetching likes post, used 700182169998352
the "/700182169998352/likes" return:
{ "data": [ { "id": "663945278", "name": "irene olsson wikler" }, { "id": "100002437916716", "name": "frida braxell" }, { "id": "1135121633", "name": "rex leopold olsson" } ], "paging": { "cursors": { "after": "mteznteymtyzmw==", "before": "njyzotq1mjc4" } } }
the "/700182169998352/likes?summary=1" return:
{ "data": [ { "id": "663945278", "name": "irene olsson wikler" }, { "id": "100002437916716", "name": "frida braxell" }, { "id": "1135121633", "name": "rex leopold olsson" } ], "paging": { "cursors": { "after": "mteznteymtyzmw==", "before": "njyzotq1mjc4" } }, "summary": { "total_count": 3 } }
so adding ?summary=1
part in json result named summary, , containng total_count, in case 3
Comments
Post a Comment