本文介绍了使用Facebook工具获取用户电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试获取用户的电子邮件,我得到了extemded的权限,这是我的code:

I try to get user's emails, I got extemded permissions, this is my code:

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

the result isapps+107889662579809.1495548076.779a95208d3e074f848b0bc5e3c38926@proxymail.facebook.com

我在做什么错了?

推荐答案

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

Nothing is wrong, when you send to that email it will redirected to user's email. User just doesn't want to share their real email.

这篇关于使用Facebook工具获取用户电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 21:07