获取 Facebook 好友的电子邮件 ID
当某人使用他的 Facebook 帐户注册我的网站时,我在获取朋友的电子邮件时遇到问题。
- 我正在尝试使用 FQL 从用户表中获取电子邮件 ID(电子邮件或 contact_email 或代理电子邮件)。但我得到了其中的所有空值。
这是我的 Fql 查询 -
/fql?q=SELECT+uid+,+ name+,+ pic_square+,+affiliations+,+birthday_date+,+sex+,+relationship_status+,+current_location+,+education_history+,+work_history+,+contact_email+ FROM+ user+ WHERE+(sex='female')+AND+uid+ IN +(SELECT+ uid2+ FROM +friend+ WHERE+ uid1=me())
现在,当我无法获取电子邮件 ID 时,我无法自动向他们发送邀请。
给我一些建议
附注:我不想发送个人消息或在 Facebook 墙上发帖。
I have a problem regarding fetching emails of friends when a person has signed up to my site using his facebook account.
- I am trying to fetch the email id (email or contact_email or proxied email) from the User table using FQL..but I get all null values in it.
This is my Fql query-
/fql?q=SELECT+uid+,+ name+,+ pic_square+,+affiliations+,+birthday_date+,+sex+,+relationship_status+,+current_location+,+education_history+,+work_history+,+contact_email+ FROM+ user+ WHERE+(sex='female')+AND+uid+ IN +(SELECT+ uid2+ FROM +friend+ WHERE+ uid1=me())
Now when I am not able to fetch the email ids ,I am not able to send invitations to them automatically .
Give me some suggestions
PS I don't want to send personal messages or post on the facebook walls.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不认为你能做到这一点。
如果您查看权限的官方文档:http://developers.facebook。 com/docs/reference/api/permissions/ 并查找您需要用户授予您的“电子邮件”权限才能获取他的电子邮件,在其旁边的“朋友权限”列中,您将参见“不适用”。
这应该告诉你,你无法获得朋友的电子邮件地址,这是 Facebook 没有提供的一件好事。
编辑
您还可以查看此帖子:Facebook 好友电子邮件 FQL
I don't think that you can do that.
If you look at the official documentation for the permissions: http://developers.facebook.com/docs/reference/api/permissions/ and look for the "email" permission which you need the user to grant you in order to get his email, next to it in the "Friends permission" column you'll see "N/A".
That should tell you that you can not get the e-mail address of the friends, and that's a good thing that facebook are not providing.
EDIT
You can also check out this thread: Facebook friends email FQL