我在我的粉絲頁上的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>
工作只有一個功能而不是兩個。如何使兩個功能同時工作?