如何从Facebook获取朋友的生日清单?

问题描述:

可能重复:
如何使用facebook api获取朋友的生日清单?

Possible Duplicate:
How to get friend's birthday list using facebook api?

我正在开发一个应用程序,我所有的用户也都是facebook用户.现在,我想从管理员部分向该用户的朋友发送有关其生日的电子邮件.这可能吗?

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?

无法检索用户朋友的电子邮件地址,因此您将无法做到这一点.

It's not possible to retrieve a user's friend's email address, so you won't be able to do that.

如果用户已授予您适当的权限,则检索用户朋友的生日很简单.您需要friends_birthday 权限来执行此操作,具有该权限的查询只是/me/friends?fields=birthday

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