在 Facebook 注册有时不提供电子邮件 [英] Register with Facebook sometimes doesn't provide email

查看:43
本文介绍了在 Facebook 注册有时不提供电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用在 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% 的无效地址听起来可能很大,但如果我查看我的 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆