2

Firefoxや他のブラウザでうまくいくいくつかのログインコードがありますが、Internet Explorerで使用するとエラーが表示されます。助けて。ここでInternet Explorerでのログインボタンとauth dosntの作業

はコードです:http://jsfiddle.net/6HXmS/1/

+0

あなたはより多くの詳細を提供する必要があります。エラーは何ですか?再生のためのステップは何ですか?何を修正しようとしましたか? – atk

+0

あなたはあなたが求めていることをより明確に理解できますか?これはプログラミングの質問ですか、またはFacebookにログインするのに問題がありますか? – turbo

答えて

0
  1. あなたが必要なすべてのOG追加したことを確認してください:また、あなたがボタンのHTML5バージョンを使用していますが、あなたのドキュメントがドキュメントに設定されていないメタタグ https://developers.facebook.com/docs/opengraph/ をhtml5と入力してdocタイプを変更するか、それ以外の場合はxfbmlバージョンのボタンを試すことができます。
  2. JS.sdkがロードされた後にボタンをレンダリングしてみてください。

<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> 
関連する問題