0
코드는 다음과 같다,
<div id="fb-root"></div>
<div class="fb-login-button" data-width="200" onlogin="GetData()"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId: 'My ID',
status: false,
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));
function GetData()
{
alert(11);
}
</script>
1 - 그것은 잘 작동하지만, 함수 GetData의 사용자 프레스 페이스 북의 로그인 버튼 후 호출하지 않습니다 2 -이 함수에 코드를 써서 이메일, 사용 이름,이 사용자에 대한 정보를 제공하십시오.
이 사람들이 당신을 위해 코드를 작성하는 사이트가 아닙니다. 너 뭐 해봤 니? – BenOfTheNorth