2012-02-29 2 views
0

저는 페이스 북 연결 웹 사이트를 구축하고 있으며 이메일을 원한다는 데이터 범위가 있다고하더라도 페이스 북 연결은 이메일을 제외하고 필요한 모든 것을 반환하고 있습니다.data-scope = "email"가 이메일을 돌려 보내지 않습니다.

<div id="fb-root"></div> 
<script> 
    window.fbAsyncInit = function() { 
     FB.init({appId: 'xxxxxxxxxx', status: true, cookie: true, xfbml: true}); 
    }; 
    (function() { 
     var e = document.createElement('script'); 
     e.async = true; 
     e.src = document.location.protocol + 
      '//connect.facebook.net/en_US/all.js'; 
     document.getElementById('fb-root').appendChild(e); 
    }()); 
</script> 


<div id="social-register" class="registration_panel"> 
    <a id="facebook-login" class="fb_button fb_button_medium" data-scope="email,user_checkins" href="home/login"> 
     <span class="fb_button_text">Login with Facebook</span> 
    </a> 
</div> 

누구든지 내가 잘못하고 있다고 말할 수 있습니까? thx

+0

위의 코드를 어디에서 얻을 수 있습니까? – ifaour

답변

0

질문에있는 코드를 기반으로 사용자 정보를 얻기 위해 전화 할 코드가 누락되었다고 생각합니다. FB.getLoginStatus(callBack)에 전화를 걸어 로그인했는지 확인한 후 FB.api('/me?fields=email',callBack);

관련 문제