내 팬 페이지의 Facebook iframe 탭에서 설문 조사를 진행했습니다. facebook.com/buddymedia와 같은 기능을 만들고 싶습니다. 사용자가 제출 단추를 누르면 폴링 결과가 표시되고 피드 대화 상자가 나타납니다. Facebook 팬 페이지에 1 onclick에서 2 가지 작업을 수행하는 방법은 무엇입니까?
는이 코드를 시도했지만 작동하지 않았다 :onclick="(return onVote(), function jsuipopup();)"
스크립트를 공급 여기서 대화를 위해 :
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
appId:'195xxxxxxxxxxxx417', cookie:true,
status:true, xfbml:true
});
function jsuipopup(){
FB.ui({
method: 'feed',
message: ' msg here',
name: 'name here!',
caption: 'captn here',
description: (descriptn here'),
link: 'http://www.facebook.com/pages/mypage',
picture: 'http://mysite.com/img/logo.png',
actions: [{
name: 'vote it',
link: 'http://www.facebook.com/pages/mypage'
}],
user_message_prompt: 'wright msg'
});
}
</script>
일 하나 작동하지 두. 두 기능을 동시에 작동시키는 법?