https://graph.facebook.com/1466384840257158/comments来带来对某一特定事件的评论https://graph.facebook.com/1466384840257158/comments?since=2011-01-01&until=2014-01-10。
{
"error": {
"message": "An unexpected error has occurred. Please retry your request later.",
"type": "OAuthException",
"code": 2
}
}请您指导我有关特定查询(point4)上的日期筛选,或者如果您有任何其他的想法来使用日期过滤器为一个事件所做的评论。
发布于 2014-04-02 09:23:35
注释使用基于游标的分页,因此不能在注释端点上使用since或until (这些参数将运行f.ex )。对于feed端点)。
要在一个时间范围内获取注释,您必须从现在到开始的时间范围( f.ex )获取所有注释。使用https://graph.facebook.com/1466384840257158/comments?filter=stream&limit=1000+分页( filter=stream将使用时间戳对结果进行排序)。
发布于 2015-03-31 19:04:56
你为什么不先试着按通知过滤呢?通知允许您添加类似于“自定义”的参数。例如(使用Facebook页面):
https://graph.facebook.com/PAGEID?fields=notifications.since(2015-3-31 00:00:00).limit(250).include_read(true)&{id,created_time,updated_time,unread,object,link}&access_token=ACCESSTOKEN获得json数据后,循环数据,获取ID并发送第二个请求,但这次使用PAGEID_POSTID边缘。就像这样:
https://graph.facebook.com/PAGEID_POSTID/comments?fields=id,from{name,id},message,can_remove,created_time&limit=1000沃拉!没有必要读每一条评论!
注1:需要一个页面访问令牌以及manage_pages权限
注2:使用参数/字段include_read获取所有通知,甚至已经读取的通知
注3:在第二个请求中,使用参数/字段"filter=stream“对帖子进行排序,并得到以页面名称表示的注释
注4:循环后不要忘记控制异步性!
注5:通知重复发布,使用数组避免多次读取postUse参数/字段include_read,以获取所有通知,甚至已经读取的通知
发布于 2016-08-31 16:59:47
如果您想使用和直到注释,则不能直接用于组上的注释。因此,首先可以将其应用于状态( feed ),然后获取该提要的注释。这对我来说很管用:
{group_id}/?fields=feed.since(08/25/2016).until(08/31/2016){from,comments{from,message}}https://stackoverflow.com/questions/22732606
复制相似问题