[英]Get facebook calendar events
I'm trying to get a user's facebook calendar events.我正在尝试获取用户的 facebook 日历事件。 I added the permission user_events, and this is the request I use -我添加了权限 user_events,这是我使用的请求 -
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.当我检查即将发生的事件列表时,它是空的,我需要的数据是事件/日历中的生日。
Have you requested the user_events
permission upon Login?您是否在登录时请求了user_events
权限? I guess not...我猜不是...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.