Facebook 图 api 在某个 post id 之后得到 posts

Facebook graph api get posts after a certain post id

我正在使用 facebook 图 api 我会定期调用:https://graph.facebook.com/cnn/posts?access_token=accesstoken

我不想在第二次拨打电话时重复 posts 所以我想过滤电话以在某个 post Id 或created_time。这可能吗?

我试过使用 date_range= 但它没有用而且它只允许我按日期而不是时间搜索。

使用基于时间的分页:https://developers.facebook.com/docs/graph-api/using-graph-api/#paging

正确的参数应该是 sinceuntil。只需存储最后一个 post 的时间戳,并在下次调用时使用它。