2
我有一些登錄代碼適用於Firefox和其他瀏覽器,但在Internet Explorer中使用它時會出現錯誤。幫我。登錄按鈕和auth dosnt在Internet Explorer中工作
下面是代碼:http://jsfiddle.net/6HXmS/1/
我有一些登錄代碼適用於Firefox和其他瀏覽器,但在Internet Explorer中使用它時會出現錯誤。幫我。登錄按鈕和auth dosnt在Internet Explorer中工作
下面是代碼:http://jsfiddle.net/6HXmS/1/
<div id="fb-root"></div>
<div id="loginbutton"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '136067339849637', // App ID
channelUrl : '//www.crabiz.biz/channel.html', // Channel File
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
oauth : true, // enable OAuth 2.0
xfbml : true // parse XFBML
});
function loginbutton(){
var loginb=document.getElementById('loginbutton');
//loginb.innerHTML='';
loginb.innerHTML=' <div class="fb-login-button" on-login="funx()" scope="email,user_likes,user_about_me,publish_stream,read_friendlists">
Installa Artesposa
</div><br>';
FB.XFBML.parse(loginb);
};
loginbutton();
};
(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 funx() {
window.top.location.href = "https://www.facebook.com/Partecipazioninozze.Artesposa/app_136067339849637";
}
function funxie() {
window.top.location.href = "https://apps.facebook.com/arte-sposa";
}
</script>
您需要提供更多的細節。什麼是錯誤?複製的步驟是什麼?你有什麼試圖解決它? – atk 2012-03-23 17:23:54
你能更清楚你在問什麼嗎?這是一個編程問題,還是你只是無法登錄到Facebook? – turbo 2012-03-23 17:35:37