我目前正在使用Facebook图形API搜索来搜索帖子
http://graph.facebook.com/search?q=iwatch&type=post&access_token=xxxxx
Run Code Online (Sandbox Code Playgroud)
它以JSON格式字段返回并用于包含类似:给定帖子的count.
在7月10日之后阅读了开发路线图(https://developers.facebook.com/roadmap/)以了解更改后,我被指示使用该summary=true参数,但我不知道如何使用搜索功能?
来自FB博客的路线图.
从'comments'中删除'count'图API连接我们正在删除Graph API中'comments'连接上未记录的'count'字段.
{id}/comments?summary=true如果您想要包含计数的摘要字段(现在称为'total_count'),请明确请求
我尝试了各种组合并搜索了示例但没有骰子.任何人都可以给我一些建议,如何让新的摘要= true在搜索网址中搜索帖子?
似乎Facebook改变了帖子的结果,几周前就可以直接从帖子中读取评论数
https://graph.facebook.com/125909647492772_502974003098530
你有类似的东西
...
"comments": {
"data": [
{
"id": "502974003098530_78616446",
"from": {
"name": "Mathias Fritz",
"id": "526559276"
},
"message": "saugeil!",
"can_remove": false,
"created_time": "2013-03-26T14:58:01+0000",
"like_count": 1,
"user_likes": false
}
],
"paging": {
"cursors": {
"after": "MQ==",
"before": "MQ=="
}
},
"count": 1
Run Code Online (Sandbox Code Playgroud)
但现在计数丢失了.
我对图表文档进行了一些研究,但是这个方向的唯一变化似乎是注释现在可以有注释......而这些注释会在名为comment_count的字段中计算.
是否仍有办法获得总评论数?
获得帖子的最佳方式是什么,分享,评论?
我正在尝试通过FQL,但当URL是FB帖子URL时它似乎没有提供任何数据:
SELECT like_count,comment_count,share_count FROM link_stat WHERE url ="https://www.facebook.com/Macklemore/posts/10153256675935268"
当我通过Graph API Explorer获取帖子信息时:
386050065267_10153256675935268
它给了我相同的计数和分享数,我可以通过获得评论计数 386050065267_10153256675935268/comments?summary=true
{
"id": "386050065267_10153256675935268",
"from": {
"category": "Musician/band",
"name": "Macklemore",
"id": "386050065267"
},
"message": "We’re playing a FREE show in November to celebrate the new Microsoft Store opening in Jacksonville, Florida. Come see us! Info here: http://msft.it/STJevent\n\nThursday, November 21, 2013\n10:00 p.m.\nStart lining up for your chance to attend the show on Saturday.\nLocation: Outdoors behind Oakley, near Dick’s Sporting Goods.",
"actions": [
{
"name": "Comment",
"link": "https://www.facebook.com/386050065267/posts/10153256675935268" …Run Code Online (Sandbox Code Playgroud)