Request 2.0 表单提交后用户生成请求的正确方法

发布于 2024-12-11 13:08:40 字数 585 浏览 3 评论 0原文

对此我感到困惑:

我正在开发一款 iframe-canvas 应用程序。用户在表单中进行选择并使用自定义 jquery 表单选择器选择朋友后,他们将表单提交到我网站上处理表单信息的页面。

我需要使用 Facebook 的 sendRequestToManyRecipients JavaScript 函数来完成用户生成的请求流程并发送通知。如果我将 sendRequestToManyRecipients 函数放在我的页面上,我会看到 FB 弹出窗口,并且通知会正常发送。

该工作流程的唯一问题是,它在视觉上使用户脱离了 Facebook 和 Facebook UI。

处理这个问题的推荐方法是什么?当该人提交表单并短暂访问我的网站来处理该表单时,我是否会在 URL 变量中使用收件人的 Facebook 用户 ID 进行重定向?

例如:

apps.facebook.com/myapp?recipients

=1234,5678,9101112,然后使用该变量调用 sendRequestToManyRecipients 函数?有更好的方法吗?是否最好以某种方式从用户地址栏中的 URL 隐藏这些变量?

感谢您的任何见解。

Scratching my head on this one:

I'm working on an iframe-canvas app. After the user makes their selections in a form and chooses friends with a custom jquery form selector, they submit the form to a page on my site that handles the form info.

I need to use Facebook's sendRequestToManyRecipients JavaScript function to complete the user-generated request flow and send a notification. If I place the sendRequestToManyRecipients function on my page I get the FB pop-up and the notification gets sent just fine.

The only problem with that workflow is that it visually takes the user out of Facebook and the Facebook UI.

What's the recommended method to handle this? When the person submits the form and it goes to my site briefly to handle the form, do I then redirect with the recipients' Facebook user ids in URL variables?

For example:

apps.facebook.com/myapp?recipients=1234,5678,9101112

and then call the sendRequestToManyRecipients function with that variable? Is there a better way to do this? Is it best to hide those variables somehow from the URL in the user's address bar?

Thanks for any insight.

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

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

发布评论

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

评论(1

浅笑轻吟梦一曲 2024-12-18 13:08:40

嗯,传递 GET 变量似乎有效。

在 Firefox 中是这样,但遗憾的是在 IE9 中不是。请参阅 IE9 错误 SEC7111:重定向后 HTTPS 安全性受到损害(仅加上安全内容消息)

Well, passing GET varibales seemed to have worked.

In Firefox that is, but sadly not in IE9. See IE9 Error SEC7111: HTTPS security is compromised after redirect (plus only secure content message)

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