注册Facebook有时不提供电子邮件 [英] Register with Facebook sometimes doesn't provide email
问题描述
我正在使用注册Facebook作为登录我的网络应用程序的方法之一,并明确要求电子邮件权限。
I'm using Register with Facebook as one of the ways to log in to my web app, and expressly ask for the "email" permission..
登录,一些用户数据( $ facebook-> api('/ me')
)存储到用户数据库中,但有时电子邮件字段不会存在 - 这是一个常见的问题吗?
On login, some of the user data ($facebook->api('/me')
) is stored into the users database, however, sometimes the email field just doesn't exist - is this a common problem?
推荐答案
只是一个猜测...
facebook文档说:
The facebook documentation says:
注意:如果没有有效的电子邮件地址可用于该用户,则不会返回此字段
note: this field will not be returned if no valid email address is available for the user
资料来源: https://developers.facebook.com/docs/reference/api/user/
所以当一个电子邮件地址变得无效(没有用户在几年内使用Facebook,并且例如已经销毁/更改了他们的电子邮件地址),Facebook可能会停止返回此字段。
So when an email address become invalid (users who haven't used facebook in years and have destroyed/changed their email address since for example), facebook may stop returning this field.
5% id地址可能听起来很大,但如果我查看我的Facebook朋友,我认为超过5%的用户从不使用他们的帐户,如果登录时使用的地址现在无效,我不会感到惊讶。
5% of invalid address may sounds big, but if I check my facebook friends, I think more than 5% of them never use their account, and I wouldn't be surprised if the address they used when they signed in is now invalid.
这篇关于注册Facebook有时不提供电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!