2012-04-08 22 views
0

私のウェブサイトのFacebookログインを作成したいと思います。私はFacebook referenceから同じコードを使用しました。しかし、ログインボタンは「Facebookでログイン」というテキストとしてのみ表示されます。誰も助けることができますか?Facebookのログイン

私のコードは次のとおりです。<script>上記と<div id="fb-root"></div>以下

<html> 
    <head> 
     <title>My Facebook Login Page</title> 
    </head> 
    <body> 
     <div id="fb-root"></div> 
     <script> 
     window.fbAsyncInit = function() { 
      FB.init({ 
      appId  : '394261217260358', 
      status  : true, 
      cookie  : true, 
      xfbml  : true, 
      oauth  : true 
      }); 
     }; 
     (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)); 
     </script> 
     login with facebook 
     <fb:login-button show-faces="false" perms="publish_stream,email,user_location,offline_access" width="200" max-rows="1">login</fb:login-button> 
    </body> 
</html> 
+0

を動作するはず? – DMCS

答えて

0

この行を入れて

<fb:login-button show-faces="false" perms="publish_stream,email,user_location,offline_access" width="200" max-rows="1">login</fb:login-button> 

、それはあなたがあなたのJavaScriptコンソールウィンドウで入手できますかどのようなエラーメッセージ