2012-04-08 4 views
0

내 웹 사이트의 Facebook 로그인을 만들고 싶습니다. Facebook reference에서 동일한 코드를 사용했습니다. 그러나 로그인 버튼은 텍스트 "Facebook 로그인"으로 만 표시됩니다. 누구든지 도와 줄 수 있습니까?Facebook 로그인 텍스트로 표시

내 코드는 다음과 같습니다

<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

<script><div id="fb-root"></div> 아래에이 줄을

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

을 넣고는