fb:请求表单显示空白页

发布于 2024-12-13 23:58:28 字数 593 浏览 3 评论 0原文

这是我的代码

<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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

假装不在乎 2024-12-20 23:58:28

看起来如果我有 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 tried action="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 to apps.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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文