Jacob Dorman
Jacob Dorman

Reputation: 341

Possible to pull list of events with end_time later than today?

Using graph API:

$events = $facebook->api('/165840163448967/events?since='. time());

Gets all events with a start_time later than today. However if an event started on a previous date but continues past today it is not returned.

These events show on facebook as 'Ongoing'

I could obviously just get the last month of events and filter them myself:

$events = $facebook->api('/165840163448967/events?since='. (time() - 2419200));

but it doesn't seem like the correct way to do things...

Upvotes: 1

Views: 198

Answers (1)

Sorskoot
Sorskoot

Reputation: 10310

I believe you can do something like this:

$events = $facebook->api('/165840163448967/events?since=today');

Upvotes: 3

Related Questions