Facebook MVC 5 ASP.NET Identity - Email is null for certain users

六月ゝ 毕业季﹏ 提交于 2019-12-03 07:20:47

This could happen if there's no primary email address for this user. The affected user must remove the email, save settings, then re-add the address, re-confirm, then make it primary. The reason why this works on other sites such as IMDB could be explained by the fact that this site doesn't require the email address to be returned from FB. It just uses whatever information is provided.

Permission on login with facebook act differently on the way of creating there facebook profile.

Even if you request the email permission it is not guaranteed you will get an email address. For example, if someone signed up for Facebook with a phone number instead of an email address, the email field may be empty.

Furthermore, now users have more control and options what to include during the registration.

Source

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!