使用Facebook工具获取用户的电子邮件(Get user email using faceboo

2019-10-22 06:57发布

我试图让用户的电子邮件,我得到了extemded权限,这是我的代码:

string email_address = "";

            var response = MainForm.stFacebookService.Api.Fql.Query(String.Format("SELECT email FROM user WHERE uid =  {0}", "1495548076"));

            XDocument xml = XDocument.Parse(response);

            XNamespace fbns = XNamespace.Get("http://api.facebook.com/1.0/");
            var users = from el in xml.Root.Elements(fbns + "user")
                        select new
                        {
                            email = el.Element(fbns + "email").Value,

                        };

            foreach (var email in users)
            {
                email_address = email.email;
            }

结果是apps+107889662579809.1495548076.779a95208d3e074f848b0bc5e3c38926@proxymail.facebook.com

我在做什么错?

Answer 1:

没有什么是错的,当您发送该电子邮件将重定向到用户的电子邮件。 用户只是不希望分享他们真实的电子邮件。



文章来源: Get user email using facebook toolkit