使用FB.login()在IE8上出现奇怪错误

时间:2011-09-15 10:44:02

标签: facebook internet-explorer login

我在IE8中遇到过这个问题。我在新部署的网站上登录了facebook。 Everythings似乎很好,但FB.login不适用于IE8。

HTML:

<button type="submit" name="" value="Belépés Facebook-kal" class="button buttonBelepesFB left">Belépés Facebook-kal</button>

Js代码:

$('.buttonBelepesFB').click(function(){
    FB.login(function(response) {
         if (response.authResponse) 
         {
            window.location.reload(true);
         }
    }, {scope: 'email,user_location,user_birthday,user_likes,publish_stream,read_friendlists'} );
});

经验丰富的问题​​

“TársasJáték发生错误。请稍后再试。”

IE想要转到此网址: https://www.facebook.com/dialog/oauth?api_key=121508871282409&app_id=121508871282409&client_id=121508871282409&display=popup&locale=hu_HU&origin=1&redirect_uri=%2Fchannel.html%3Ffb_xd_fragment%23%3F%3D%26cb%3Df1070f9c58ad265%26relation%3Dopener%26transport%3Dfragment%26frame%3Df2cd8806c85178&response_type=token%2Csigned_request&scope=email%2Cuser_location%2Cuser_birthday%2Cuser_likes%2Cpublish_stream%2Cread_friendlists&sdk=joey

此网址在所有浏览器上都失败。

感谢您的帮助!

1 个答案:

答案 0 :(得分:1)

对我来说,我需要FB Javascript SDK中描述的频道文件。我发布了对类似问题的回复 - 也许对你的情况也有帮助:

<fb:login-button> problems with IE8 (Internet Explorer) only