1
Facebook的登錄彈出窗口不能在ie6和IE7上工作,有沒有辦法使登錄彈出式javascript的SDK在ie6或ie7中工作。只是不起作用,並沒有顯示任何錯誤。我使用的是Flash和javascript facebook sdk來提示登錄。Facebook登錄彈出窗口在ie6和ie7上不起作用?
window.fbAsyncInit = function() {
FB.init({
appId : 'XXXXXXXXXXX',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true, // parse XFBML
channelUrl : 'http://www.url.com/channel.html',
oauth : true
});
FB.Event.subscribe('auth.sessionChange', function(response) {
alert('The status of the session is: ' + response.status);
});
};
(function(d){
var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
d.getElementsByTagName('head')[0].appendChild(js);
}(document));
function setFB(){
FB.login(function(response) {
if (response.authResponse) {
FB.api('/me', function(response) {
});
} else { obtenerDatos(false, "nologin", ""); } }
}
我沒有看到,在打開的彈出你的代碼什麼...你需要調用方法的FB.login – 2011-12-14 19:22:40
@BjörnKaiser葉氏我DOIT在另一個JS, 的FB.login(功能(響應){ \t \t如果(response.authResponse){ \t \t \t FB.api( '/我',功能(響應){ \t \t \t \t obtenerDatos(真 「silogin」,response.name); \t \t \t}) ; \t \t} else { 個\t \t \t obtenerDatos(假 「nologin的」, 「」); \t \t} \t} – MrSanders 2011-12-14 19:31:13