Facebook API:如何对评论进行分页

时间:2016-06-28 11:43:08

标签: python facebook facebook-graph-api pagination

我使用facebook-sdk和Python 3 http://facebook-sdk.readthedocs.io/en/latest/api.html

我可以按时间分页:

paging_next = gp.get_connections(url, 'feed', until=timestamp_until_list[1], **kwargs)['paging']['next']

但是评论直到他们有['分页'] ['游标'] ['之后']和[' ;寻呼'] ['光标'] ['前&#39]。 当我试着下一次

paging_next = gp.get_connections(id=post_id, connection_name='comments', limit=100, **kwargs)['paging']['cursors']['after']  # this working, result is 'MQZDZD'

然后我通过了MQZDZD':

paging_next2 = gp.get_connections(id=post_id, connection_name='comments', after=paging_next, **kwargs)

结果是空列表[]

我做错了什么?

0 个答案:

没有答案