如何使用 fb:request-form 标签添加自定义字段

发布于 2024-10-09 20:38:09 字数 144 浏览 0 评论 0原文

我需要在 facebook 中添加带有 fb:request-form 标签的自定义字段。即:- 我需要用户在文本框中输入一些值,然后选择他/她的 Facebook 好友,当用户使用所选 uid 发送邀请时,我需要处理用户在文本框中输入的值。

提前致谢...

I need to add a custom field with the fb:request-form tag in facebook. ie:- I need the user enter some value in a text box and then select his/her facebook friends and when the user send the invitation with the selected uid's i need to process the value that the user entered in the text box.

Thanks in advance...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

从此见与不见 2024-10-16 20:38:09

只需执行以下操作:

<fb:request-form action="URL_TO_POST_TO" method="POST">
  <fb:multi-friend-selector with="all" needed="params" />
  <input name="posted" value="true" type="hidden" />
  <input name="test" type="text" />
</fb:request-form>

在 URL_TO_POST_TO 中,除了 FB 在发送请求/邀请后添加的参数之外,您还应该收到这些 POST 参数。

Just do something like this:

<fb:request-form action="URL_TO_POST_TO" method="POST">
  <fb:multi-friend-selector with="all" needed="params" />
  <input name="posted" value="true" type="hidden" />
  <input name="test" type="text" />
</fb:request-form>

In URL_TO_POST_TO you should receive these POST params too, in addition to the ones that FB adds after the request/invitation is sent.

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