fb:请求表单显示空白页
这是我的代码
<fb:serverFbml style="width: 760px;">
<script type="text/fbml">
<fb:fbml>
<fb:request-form
action="http://apps.facebook.com/MyAPP/invite.php"
target="_top"
method="POST"
invite="true"
type="Invite Form"
content="<fb:req-choice url='http://www.example.com/folder/index.php' label='Accept' />"
>
如果我有action =“http://www.example.com/folder/invite.php”,那么它会在invite.php页面中发布邀请的朋友数组,但它会将用户带到facebook界面之外。 如果我有action =“http://apps.facebook.com/MyAPP/invite.php”,那么它会保留在facebook界面中,但会加载invite.php的空白页面。
知道如何解决这个问题吗?
This is my code
<fb:serverFbml style="width: 760px;">
<script type="text/fbml">
<fb:fbml>
<fb:request-form
action="http://apps.facebook.com/MyAPP/invite.php"
target="_top"
method="POST"
invite="true"
type="Invite Form"
content="<fb:req-choice url='http://www.example.com/folder/index.php' label='Accept' />"
>
If i have action="http://www.example.com/folder/invite.php" then it posts array of friends invited in invite.php page, but it takes user outside facebook interface.
If i have action="http://apps.facebook.com/MyAPP/invite.php" then it stays in facebook interface but loads a blank page for invite.php.
Any idea how to solve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来如果我有
action=apps.facebook.com/MyAPP/invite.php
那么
不会将 ids 数组发布到页面。所以我尝试了action="MyDomain.com/folder/invite.php";
它给了我存储在会话中的 ids 和数组,然后让此页面将用户重定向回 <代码>apps.facebook.com/MyAPP。在那里我检查了数字数组按照我想要的方式处理它。但不确定这是最好的方法。It looks like if I have
action=apps.facebook.com/MyAPP/invite.php
then<fb:request-form>
doesn't post the ids array to the page. So I triedaction="MyDomain.com/folder/invite.php";
and it gave me the ids in and array which I stored in a session and then have this page redirect the user back toapps.facebook.com/MyAPP
. There I checked the number array processed it the way I wanted. Not sure this is best way to go about it though.