I'm trying to get a user's facebook calendar events. I added the permission user_events, and this is the request I use -
var request = FBSDKGraphRequest(graphPath:"/me/events", parameters: nil);
request.startWithCompletionHandler { (connection : FBSDKGraphRequestConnection!, result : AnyObject!, error : NSError!) -> Void in
if error == nil {
println(result["data"]!)
} else {
println("Error Getting Friends \(error)");
}
}
This code doesn't return anything, can you help me fix it?
Thanks!
EDIT
When I checked my upcoming events list it was empty, the data I need is the birthdays in the events/calendar.
/me/events
. (And not via any other endpoint either.)