2012-06-27 5 views
0

내 웹 응용 프로그램에서 Facebook 로그인을 구현하려고합니다. 나는 응용 프로그램 ID를 가지고와 내 코드는`웹 응용 프로그램의 Facebook 로그인

follows.` 내 페이스 북 로그인 페이지로이
<div id="fb-root"></div> 
    <script> 
    window.fbAsyncInit = function() { 
     FB.init({ 
     appId  : '<<App Id>> ', // App ID 
     channelUrl : '//www. DOMAIN NAME.com/channel.html', // Channel File 
     status  : true, // check login status 
     cookie  : true, // enable cookies to allow the server to access the session 
     xfbml  : true // parse XFBML 
     }); 
     // Additional initialization code here 
    }; 
    // Load the SDK Asynchronously 
    (function(d){ 
     var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0]; 
     if (d.getElementById(id)) {return;} 
     js = d.createElement('script'); js.id = id; js.async = true; 
     js.src = "//connect.facebook.net/en_US/all.js"; 
     ref.parentNode.insertBefore(js, ref); 
    }(document)); 
    </script><div class="fb-login-button"><a href=" ">Login with Facebook</a></div> 
</body> 

입니다. 나는 이것을 실행하려고 애 쓰고 내 앱에 오류가 발생한다. 나 또한 비밀 키를 가지고 있지만 정확히 어디에 배치 해야할지 모르겠다. 우리는 이것을 위해 어떤 CSS 또는 js 또는 다른 파일을 배치해야합니까 ??

어떤 도움이 크게 감사합니다 ..

+1

오류에서 지정할주세요! –

+0

그것은 .. "오류가 발생했습니다 "나중에 다시 시도하십시오 – user1277996

답변

0
appId  : '<<App Id>> ', //Place App ID 
channelUrl : '//www. DOMAIN0 NAME.com/channel.html', // Place domain here 
관련 문제