Receive Facebook messages by date

The Facebook page is a useful channel for us to learn something. But I have a problem in filtering his messages by date: receive all messages by the specified date. Delivered old messages.

Is there any Facebook API supporting this task?

+4
source share
1 answer

You can use the options since, and untilin conjunction with strtotime

strtotime(); link: http://php.net/manual/en/function.strtotime.php

Usage example using the Graph API.

// 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

Live example:

https://developers.facebook.com/tools/explorer/135669679827333/?method=GET&path=shawndageek%2Ffeed%3Fsince%3D1%20january%202015%26until%3Dnow%26limit%3D20&version=v2.5

:

  • , , , limit=
+8

All Articles