如何从 Facebook 获取好友生日列表?
我正在开发一个应用程序,我的所有用户也是 facebook 用户。现在我想从管理部分向该用户的朋友发送有关他生日的电子邮件。这可能吗?
Possible Duplicate:
How to get friend's birthday list using facebook api?
I'm developing an application and all my users are also facebook user. Now I want to send emails from admin section to that user's friends about his birthday. Is this possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
无法检索用户朋友的电子邮件地址,因此您将无法执行此操作。
不过,只要用户朋友给了您适当的权限,检索用户朋友的生日就很简单了。您需要获得
friends_birthday
权限才能执行此操作一旦您拥有该权限,查询就只是/me/friends?fields=birthday
It's not possible to retrieve a user's friend's email address, so you won't be able to do that.
It's trivial to retrieve a user's friend's birthdays provided they've given you the appropriate permissions though. You'll need the
friends_birthday
permission to do this, and once you have that permission the query is just/me/friends?fields=birthday
是的,您可以发送 FQL 查询来获取生日,查看用户表。
Developers.facebook.com/docs/reference/fql/user/
我觉得您需要为此向用户请求许可。
Yes, you could send a FQL query to get the birthday, look into User table.
developers.facebook.com/docs/reference/fql/user/
I feel you need to request permission to the user for that.