Facebook登录范围电子邮件不起作用

时间:2014-01-17 17:28:53

标签: email facebook-login

我已在我的网站上实施facebook登录,并要求获得电子邮件许可。 在某些情况下,我无法获得电子邮件地址...但有一些Facebook帐户,它的工作原理......

这是我的代码:

FB.api('/me', function(response) {
        console.log(response);
        $.ajax({
            type: "POST",
            data: response,
            url: $('.facebookConnectUrl').text(),
            success: function (data, text) {
                if (data == 1) {
                    if (redirectPageAfterLogin === undefined) {
                        location.reload();
                    } else if (redirectPageAfterLogin == 'add') {
                        window.location.replace($('.header .li_sell a').attr('href'));
                    }
                    $.fancybox.close();
                } else {
                    $('.waitForConnexion').hide();
                    $('.errorConnexionFB').show();

                    $('.errorFacebookRegister').click();
                }

// $(document).css('cursor','default');                 },                 错误:函数(请求,状态,错误){ //警告(错误);                 }             }); // console.log(response);         });

Console.log告诉我:

birthday: "03/23/1990"
first_name: "Mathieu"
gender: "male"
id: "100004609354200"
last_name: "XXXX"
link: "https://www.facebook.com/xxxxxxxxx"
locale: "fr_FR"
name: "Mathieu XXXX"
timezone: 1
updated_time: "2012-10-28T12:10:39+0000"
username: "xxxxxx"

在Facebook应用程序详细信息(法语):

Cette application a besoin de (this app need)   
Vos infos de base (your basics informations)
Votre adresse électronique (xxxxx@yahoo.fr) (your email address)
Votre anniversaire (your birthdate)

0 个答案:

没有答案