Facebook iframe标签签名请求始终为空 [英] Facebook iframe tab signed request always empty
问题描述
我正在Facebook应用程序选项卡上工作,并希望使用签名的请求包,如下所示:
http://developers.facebook.com/blog/post/462/
I'm working on a Facebook app tab and would like to use the signed request bundle as documented here: http://developers.facebook.com/blog/post/462/
我试图使用他们的示例代码来解压缩已经被传递给该选项卡的签名请求,但是 $ _ POST
, $ _ GET
和 $ _ REQUEST
始终都为空。
I'm trying to use their example code to unpackage the signed request which is supposedly passed to the tab, however, $_POST
, $_GET
, and $_REQUEST
are always all empty.
确切的代码适用于画布页面,我可以解析签名的请求。
The exact code works on the canvas page and I am able to parse the signed request.
在最近的公告中有没有丢失的东西?
Is there something that I'm missing in their recent announcement?
顺便说一下,该应用没有发布到市场,而我的标签安装在fanpage上是私有的。是否会有所作为?
By the way, the app is not published to the marketplace, and the fanpage my tab is installed on is private. Will that make a difference?
-Seth
推荐答案
弄清楚了!
配置应用程序时,我已经填写了选项卡URL为tab /
这样就可以在标签页 http://www.example.com/myfacebookapp/tab/
这对我有意义
Okay, figured it out! When configuring the app, I had filled in the "Tab URL" to be "tab/" This made the full url to the tab page "http://www.example.com/myfacebookapp/tab/" This made sense to me.
显然,Facebook不喜欢这个。将标签网址更改为tab / index.php后,签名的请求开始显示在应用标签页中。
Apparently, Facebook doesn't like this. After changing my "Tab URL" to 'tab/index.php", the signed request started to show up in the app tab!
这篇关于Facebook iframe标签签名请求始终为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!