2012-01-11 67 views
0

我使用請求表單作爲邀請表單。但是,當我向朋友發送請求時,fanpage選項卡將變爲空白,並且表單消失。邀請表單<fb:請求表單操作不起作用?

當我刪除「動作」條目時,它可以工作,但我會使用操作鏈接向鏈接添加一個變量。 這是可能的嗎? 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 --> 

任何幫助這個問題?

回答

0

很抱歉地通知您,FBML已被棄用。你應該改爲使用JavaScript API的請求對話框(https://developers.facebook.com/docs/reference/dialogs/requests/)

+0

我發佈的這樣的請求將來不會起作用嗎? – 2012-01-11 15:47:31

+0

正確,FBML引擎很快就會消失。您將需要使用新的Javascript SDK的請求對話框重新編碼您的解決方案。 – DMCS 2012-01-11 16:03:49

+0

好的,感謝這個信息。但是是否可以創建一個粉絲專頁的請求?現在,當我發送請求時,用戶可以點擊的鏈接將它們帶到應用程序而不是粉絲頁面。 – 2012-01-11 16:20:27