Facebook Graph API event-id / comments?since = 2014-02-01& until = 2014-02-10,日期过滤器没有影响 [英] Facebook Graph API event-id/comments?since=2014-02-01&until=2014-02-10 , Date filter has no effect

查看:151
本文介绍了Facebook Graph API event-id / comments?since = 2014-02-01& until = 2014-02-10,日期过滤器没有影响的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  1. 我试图通过定位此网址来对特定事件发表评论: https://graph.facebook.com/1466384840257158/comments

  2. 我正在传递user_access_token

  3. 目前我有两个意见,在同一个
    日(2014- 03-29)

  4. 现在我尝试传递一个应该带来空数据结果/对象
    的日期,如下所示: https:// graph。 facebook.com/1466384840257158/comments?since=2011-01-01&until=2014-01-10

  5. 此请求无效,仍显示我在29日发表的两条评论是

  6. 我在我的user-id / feed上尝试过同样的日期范围,而
    给了我一个空数据对象。

  7. 最后我尝试了event-id / feed(尝试日期过滤器之前),它
    给了我以下错误

  1. I am trying to bring comments made on a particular event by targeting this URL: https://graph.facebook.com/1466384840257158/comments
  2. I am passing the user_access_token
  3. I have two comments at present on this event made on the same day(2014-03-29)
  4. Now I try to pass a date which should bring an empty data result/object like this: https://graph.facebook.com/1466384840257158/comments?since=2011-01-01&until=2014-01-10
  5. This request has no effect, it still shows me the two comment made on the 29th
  6. I have tried the same kind of date range on my user-id/feed and it gave me an empty data object.
  7. Finally i tried event-id/feed (before trying date filter) and it gave 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,日期过滤器没有影响的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆