ファン ページの Facebook iframe タブで投票を行っています。ここfacebook.com/buddymediaのような機能を作りたいです。ユーザーが [送信] ボタンをクリックすると、投票結果が表示され、同時にフィード ダイアログが表示されます。
このコードを試しましたが、うまくいきませんでした:
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>
2 つの機能ではなく、1 つの機能のみを使用してください。2つの機能を同時に動作させるには?