당신이 당신의 페이지에 페이스 북의 js를 가지고이 친구 초대 만들으로,이 같은 쉬운만큼 :
<script>
FB.ui(
{
method: 'friends.add',
id: fbid // assuming you set this variable previously...
},
function(param){
// If you have FireFox + FireBug or Chrome + developer tools:
console.log(param); // log response to javascript console
// If they cancel params will show:
// {action:false, ...}
// and if they send the friend request it'll have:
// {action:true, ...}
// and if they closed the pop-up window then:
// param is undefined
}
);
</script>
당신은 페이스 북에서 자바 스크립트 콘솔 응용 프로그램을 사용하여이를 테스트 할 수 있습니다
을
http://developers.facebook.com/tools/console
태그를 포함하여 위의 스크립트를 붙여 넣거나 텍스트 영역 하단의 "예제"버튼을 클릭하고 "fb.ui - friends.add"예제를 찾으십시오.
+1하지만 "console.log는 firefox 디버그 기능입니다" – sv88erik