Facebook signed_request返回NULL [英] Facebook signed_request returns NULL

查看:118
本文介绍了Facebook signed_request返回NULL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Facebook上创建了新的iframe应用程序,想要检测用户是否是当前页面的风扇,所以我使用$ _REQUEST ['signed_request']变量,如下所述: http://developers.facebook.com/docs/authentication/signed_request/ 。但是$ _REQUEST ['signed_request']变量总是返回NULL,而不是实际返回的值。有没有人遇到同样的问题?我很熟悉在Facebook上创建应用程序,但无法弄明白这个问题可能是什么原因...任何想法?

I have create new iframe app on facebook and want to detect whether the user is a fan or not of the current page so I use the $_REQUEST['signed_request'] variable as described here: http://developers.facebook.com/docs/authentication/signed_request/. However $_REQUEST['signed_request'] variable always returns NULL, not what it should actually return. Has anyone ever encountered the same problem? I'm quite familiar with creating apps on facebook but can't figure out what could be the reason of this problem... Any ideas?

推荐答案

确保在页面选项卡上,您可以指定页面的名称,例如 http:/ /yourdomain.com/myapp/index.php ,而不是 http://yourdomain.com/myapp

Make sure that in your Page tab url you specify the name of the page for example http://yourdomain.com/myapp/index.php instead of just http://yourdomain.com/myapp

如果您指定了确切的页面,签名的请求似乎已发布。

The signed request only seems to get posted if you specify the exact page

这篇关于Facebook signed_request返回NULL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆