Facebook Page 是我们学习某些东西的有用 channel 。但是我在按日期过滤其帖子时遇到问题:在指定日期之前获取所有帖子。旧帖子已 float 。
是否有任何 Facebook API 支持执行此任务?
最佳答案
您可以将参数 since
和 until
与 strtotime 结合使用
strtotime();
引用: http://php.net/manual/en/function.strtotime.php
使用 Graph API Explorer 的用法示例。
// example will return first 20 posts made between 15th of March, and 5th of April 2013.
example.com/feed?since=15+march+2013&until=5+april+2013&limit=20
实例:
附加信息:
- 帖子对象首先返回最近的帖子,因此如果旧帖子没有显示,您可能需要缩小日期差距或增加
limit=
关于facebook - 按日期从 Facebook 页面获取帖子,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19393053/