質問
招待フォームにリクエストフォームを使用します。しかし、友人にリクエストを送信すると、ファンページタブが空白になり、フォームが消えます。
「アクション」エントリを削除すると動作しますが、アクションリンクを使用してリンクに変数を追加します。これはこのように可能ですか? action = "https://apps.facebook.com/myapp/index.php?invite=1"
私のコード。
<!-- Invite Formular -->
<div id="fb-root"></div>
<script type="text/javascript" src="http://connect.facebook.net/de_DE/all.js"></script>
<script type="text/javascript">FB.init({appId: 'myappid', status : true, cookie : true, xfbml : true});</script>
<div id="dialogInviteFriends" style="overflow:hidden; margin-left: -10px;">
<fb:serverfbml width="520px">
<script type="text/fbml">
<fb:fbml>
<fb:request-form target="_self" method="POST" invite="true" type="Partymaus Salzburg" action="https://apps.facebook.com/myapp/index.php?invite=1" label="Schau jetzt vorbei"
content="Ich hab hier eine super Fanpage gefunden, die musst du dir anschauen.">
<fb:multi-friend-selector actiontext="Sags deinen Freunden" showborder="false" rows="5" cols="3" import_external_friends = "false">
</fb:request-form>
</fb:fbml>
</script>
</fb:serverFbml>
</div>
<!-- Ende Invite Formular -->
この問題の助けはありますか?
解決
お知らせして申し訳ありませんが、FBMLは非難されています。代わりにJavaScriptAPIのリクエストダイアログを使用するように変更する必要があります(https://developers.facebook.com/docs/reference/dialogs/requests/)
所属していません StackOverflow