Facebook Email field return null (even if the “email” permission is set and accepted)

前端 未结 14 1222
孤街浪徒
孤街浪徒 2020-11-29 01:12

For some users in our application, the email field returns NULL even if the user has granted the email access to the app. When we check the scope parameter and the validity

14条回答
  •  广开言路
    2020-11-29 02:11

    I had the same problem and I think I found out why: If the user has an unconfirmed email in Facebook (i.e. Facebook sent him a validation mail to the user's email address but he didn't respond) Facebook WILL NOT pass that email to your app even if he gave you the email permissions.

    So what I did is use his or her Facebook email if the user has a user name (i.e. userName@facebook.com).

提交回复
热议问题