页面选项卡的signed_request有时未填充
我有一个页面选项卡应用程序。有时,当登录用户单击 Facebook 页面中的选项卡名称时,传入的表单帖子“signed_request”数据为空。
关于如何发生这种情况有什么想法吗?它是零星的,并且似乎没有锁定到一个特定的用户帐户。我在设置中将 oauth2 设置为 true,因此根据 Facebook 的 api 文档,我应该始终在表单发布数据中传递signed_request。
I have a page tab application. Sometimes when a logged in user clicks the tab name from the Facebook page, the form post "signed_request" data is being passed in is empty.
Any ideas as to how this can happen? It is sporadic and doesn't seem to be locked to one specific user account. I have oauth2 set to true in the settings, so according to Facebook's api documentation, I should always be passed signed_request in the form post data.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有类似的问题,得到了帮助:
无法访问 Facebook带有 iframe 选项卡的signed_request
在我的例子中,托管应用程序的网站正在执行 301 重定向,因为我给 Facebook 的应用程序 URL 包含大写字母。重定向将 POST 更改为 GET 并丢失了signed_request。
Had a similar problem, was helped by:
Cannot access Facebook signed_request with an iframe tab
In my case the site hosting the app was doing a 301 redirect because the app url I gave Facebook contained capital letters. The redirect changed POST to GET and lost the signed_request.
这是我想出的解决方法。
*如果没有signed_request表单发布参数,那么我向用户显示错误屏幕并要求用户刷新页面。这通常会修复第二个请求的问题,并且页面会发送正确的signed_request表单帖子。*
缺乏Facebook支持和参与facebook stackoverflow部分是非常令人不安的。如果不是 Facebook 强制使用这个论坛来提供其全部 API 支持,情况也不会那么糟糕。 :(
Here's the work-around I've figured out.
*If there is no signed_request form post parameter, then I display an error screen to the user and ask the user to refresh the page. This usually fixes the issue on the second request, and the page is sent a proper signed_request form post.*
Lack of Facebook support and involvement in the facebook stackoverflow section is very disconcerting. It wouldn't be that bad, if it wasn't that Facebook had mandated use of this forum for the entirety of their API support. :(