我在我的粉丝页上的Facebook iframe选项卡上进行了一项民意调查。我想制作像这里的功能facebook.com/buddymedia。如果用户单击提交按钮,则轮询结果将显示,同时会显示进纸对话框。如何在1粉丝进入Facebook粉丝页面时进行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>
工作只有一个功能而不是两个。如何使两个功能同时工作?