Requests Dialog only works with Canvas-View?

旧时模样 提交于 2019-12-21 05:16:17

问题


I've some page-tabs for a few fanpages and there I'd like to integrate the RequestDialog. But unfortunately it always tries to redirect the friend, that got a request, to the canvas page.

Is there a way to send the user to the page-tab, where his friend initially started the request dialog?

Thanks in advance, Jurik


回答1:


Accepting a request will always go to the canvas page with the request_ids parameter added. See the "User Response" section of this doc: https://developers.facebook.com/docs/reference/dialogs/requests/

Obviously you could write code to detect when the user arrives with the request_ids parameter and redirect to another page, like your Page tab, for example by setting window.top.location.href in JavaScript inside your canvas iframe.



来源:https://stackoverflow.com/questions/7875240/requests-dialog-only-works-with-canvas-view

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!