Getting only those Facebook events which haven't expired graph api

facebook, facebook-graph-api, facebook-ios-sdk, ios, objective-c

Solution

You can make use of the `since` parameter as described in

- https://developers.facebook.com/docs/graph-api/reference/v2.2/user/events/#read

- https://developers.facebook.com/docs/graph-api/using-graph-api#paging

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

/me/events?since=1417508443

Problem

I am trying to get only those facebook events that haven't expired yet(Upcoming events). When i use the following query i get all the events including those that have expired long ago. ``` FBRequestConnection startWithGraphPath:@"/me/events" parameters:nil HTTPMethod:@"GET" ```

Original source