Facebook电子邮件字段返回null(即使设置并接受“电子邮件”权限) [英] Facebook Email field return null (even if the “email” permission is set and accepted)

查看:252
本文介绍了Facebook电子邮件字段返回null(即使设置并接受“电子邮件”权限)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我们应用程序中的某些用户,即使用户已经授予对该应用的电子邮件访问权限,电子邮件字段也返回NULL。
当我们使用Debugger工具检查范围参数和用户令牌的有效性时,一切都可以。许可电子邮件已被接受。
但是当我们向图API询问用户的电子邮件时,使用有效的用户令牌,它根本就不会出现。

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 of the user Token thanks to the Debugger tool, everything is ok. The permission email has been accepted. But when we ask the Graph API for the email of the user with the valid user token, it does not appear at all.

有没有办法用户可以防止应用程序发送电子邮件,即使他已经授予电子邮件权限?

Is there a way a user could prevent an app from getting his email even if he granted the email permission?

谢谢

推荐答案

我有同样的问题,我想我发现为什么:
如果用户在Facebook中有未确认的电子邮件(即Facebook向他发送验证邮件到用户的电子邮件地址,但他没有即使他给了您电子邮件权限,Facebook也不会将该电子邮件传递给您的应用程序。

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.

所以我所做的是使用他或她的Facebook电子邮件,如果用户有一个用户名(即userName@facebook.com)。

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

这篇关于Facebook电子邮件字段返回null(即使设置并接受“电子邮件”权限)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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