请求对话框的问题
我对使用 FB 请求对话框 (sendRequestToManyRecipients) 感到有点困惑。 按照 FB 开发人员部分中找到的示例,我成功显示了弹出窗口,但我在朋友收到的请求方面遇到了问题。事实上,他收到的链接显示了 404 错误页面。 我只是想知道如何将参数添加到我希望用户重定向到的着陆页上。 如果可能的话...
这是我使用的代码:
<script>
FB.init({
appId : 'xxxxxx',
status : true,
cookie : true,
oauth : true
});
function sendRequestToManyRecipients() {
FB.ui({method: 'apprequests',
app_id: 'xxxxxx',
message: 'My message',
}, requestCallback);
}
function requestCallback(response) {
// Handle callback here
}
</script>
非常感谢您的帮助。
I'm a little confused using FB request dialog (sendRequestToManyRecipients).
Following the example found on FB developers' section, I succeed displaying the popup but I'm having a problem with the request received by the friend. Indeed the link he receive shows a 404 error page.
I'd just like to know how I can add the parameter with the landing page I want the user be redirected on.
If only it's possible...
Here is the code I use:
<script>
FB.init({
appId : 'xxxxxx',
status : true,
cookie : true,
oauth : true
});
function sendRequestToManyRecipients() {
FB.ui({method: 'apprequests',
app_id: 'xxxxxx',
message: 'My message',
}, requestCallback);
}
function requestCallback(response) {
// Handle callback here
}
</script>
Thank you very much for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您无法设置请求的请求登陆页面,但是您知道他将被发送到哪里:
( https://developers.facebook.com/docs/reference/dialogs/requests/ )
这取决于你当用户访问您的应用程序时查看是否有 request_ids 参数,检查请求是否有效,并将其重定向到您想要的任何内容(不同的页面,处理请求等...)
You cannot set the request landing page for requests, BUT you know where he'll be sent :
( https://developers.facebook.com/docs/reference/dialogs/requests/ )
It's up to you to look if there's a request_ids parameter when a user come to your application, to check if the request is valid, and to redirect him to whatever you want (a different page, processing request, etc...)