问题描述
- 我试图通过定位此网址来对特定事件发表评论:
https://graph.facebook.com/1466384840257158/comments
- 我正在传递user_access_token
- 目前我有两个意见,在同一个
日(2014- 03-29) - 现在我尝试传递一个应该带来空数据结果/对象
的日期,如下所示:https:// graph。 facebook.com/1466384840257158/comments?since=2011-01-01&until=2014-01-10
- 此请求无效,仍显示我在29日发表的两条评论是
- 我在我的user-id / feed上尝试过同样的日期范围,而
给了我一个空数据对象。 - 最后我尝试了event-id / feed(尝试日期过滤器之前),它
给了我以下错误
- I am trying to bring comments made on a particular event by targeting this URL:
https://graph.facebook.com/1466384840257158/comments
- I am passing the user_access_token
- I have two comments at present on this event made on the sameday(2014-03-29)
- Now I try to pass a date which should bring an empty data result/objectlike this:
https://graph.facebook.com/1466384840257158/comments?since=2011-01-01&until=2014-01-10
- This request has no effect, it still shows me the two comment madeon the 29th
- I have tried the same kind of date range on my user-id/feed and itgave me an empty data object.
- Finally i tried event-id/feed (before trying date filter) and itgave me the following error
。
{
"error": {
"message": "An unexpected error has occurred. Please retry your request later.",
"type": "OAuthException",
"code": 2
}
}
请指教我关于特定查询(point4)的日期过滤器,或者您有任何其他想法可以对事件发表的评论使用日期过滤器。
Could you please guide me about date filter on that particular query (point4) or if you have any other idea to use date filter on comments made for an event.
推荐答案
评论使用,所以你不能使用,因为
或直到
在注释端点(这些参数将为
feed
端点工作f.ex.)。
Comments use Cursor-based Pagination, so you cannot use since
or until
on the comments endpoint (these parameters would work f.ex. for the feed
endpoint).
要在时间范围内获取评论,您必须从NOW获取所有注释到时间范围开始的f.ex。与 https://graph.facebook.com/1466384840257158/comments?filter=stream&limit=1000
+分页( filter = stream
将使用时间戳命令结果。)
To get the comments in a time range you have to fetch all comments from NOW to the start of the time range, f.ex. with https://graph.facebook.com/1466384840257158/comments?filter=stream&limit=1000
+paging (the filter=stream
will order the result with the timestamp).
这篇关于Facebook Graph API event-id / comments?since = 2014-02-01& until = 2014-02-10,日期过滤器没有影响的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!