doupi3874 2015-10-12 07:32
浏览 25
已采纳

需要Facebook api电子邮件

I am using the api (http) facebook some time now, but I detected a problem a few days ago ... There is people to withdraw permission email which then cause inconsistencies in the system.

There is no possibility to stop the login process if you have no access to email?

I was trying another solution. In the callback see if you have the email or not variable. The problem is that the user can not log in again because the facebook is already saved your preference not to allow email.

  • 写回答

1条回答 默认 最新

  • dongtaijiao7140 2015-10-12 07:45
    关注

    No, you can't stop the login process itself. After the Facebook login process, you can make a call to fetch their email from the Graph API and present an error message stating email is required. Consider permitting them to enter it into a form on your side at this point - maybe they don't want your app's emails going to the email address they use for Facebook.

    Do note that many Facebook accounts have no email address at all, as it's possible to sign up with just a phone number. Rejecting these users is generally not the best idea for user experience.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部