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
}
}
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.
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).
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).