我怎样才能像总额从Facebook的一个帖子与图形API? [英] how can i get Total like From A post in Facebook with Graph Api?
本文介绍了我怎样才能像总额从Facebook的一个帖子与图形API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
下面此链接
喜欢
返回:
包含id和name字段的对象的阵列。与总结请求= 1也将返回一个包含喜欢的TOTAL_COUNT摘要对象。
什么剂量的意思吗?
没有人知道如何让喜欢总额从图形API URL帖子?
what dose is mean ? does anyone know how to get total likes a post from graph api url ?
请帮我.....
推荐答案
在 FB API探险尝试抓取喜欢一个职位,我用700182169998352
in the FB API explorer try fetching likes for a post, i used 700182169998352
在/ 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"
}
}
}
在/ 700182169998352 /喜欢总结= 1?返回:
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
}
}
所以加入?总结= 1
您在名为总结JSON结果获得额外的一部分,
和containng的TOTAL_COUNT,在我的情况3
so by adding the ?summary=1
you get an extra part in the json result named summary,
and containng the total_count, in my case 3
这篇关于我怎样才能像总额从Facebook的一个帖子与图形API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文