Retrieving only those Facebook events that have not expired.

I am trying to get only those facebook events that have not expired (upcoming events).

When I use the following query, I get all events, including those that have expired a long time ago.

FBRequestConnection startWithGraphPath:@"/me/events" parameters:nil HTTPMethod:@"GET" 
+5
source share
2 answers

You can use the since parameter as described in

if you set the timestamp to the current time, you should only see future events:

 /me/events?since=1417508443 
+10
source

You can use time_filter=enum{upcoming,past} . for example, if you want upcoming events not to expire yet, send a request like this

/ page_name_or_id / events? Time_filter = upcoming

Thus, you do not need to handle time zone problems, as with the since=timestamp request.

+1
source

Source: https://habr.com/ru/post/1208107/


All Articles