Cakephp Facebook Connect 使用 Nick Baker 的插件:错误=> FB不存在
我正在开发 Nick Baker 的 CakePHP Facebook 插件。我正在按照他在截屏视频中描述的方式http:/ /tv.cakephp.org/video/webtechnick/2011/01/12/nick_baker_--_facebook_integration_with_cakephp
但是当我尝试获取当前登录的用户 $this->Connect->user () 使用 Facebook.Connect 组件,我没有得到任何返回值...
当我调试当前会话时,(debug($this-> Session);),我得到以下内容:
app/app_controller.php(第10行)
SessionComponent对象 (
[__active] => 1
[__bare] => 0
[valid] =>
[error] => Array
(
[2] => FB doesn't exist
)
[_userAgent] => 36267ef3c9f36ab07ac8e68d1deb03aa
[path] => /sharefaredev
[lastError] => 2
[security] => medium
[time] => 1301436341
[sessionTime] => 1301448341
[cookieLifeTime] => 720000
[watchKeys] => Array
(
)
[id] =>
[host] => localhost
[timeout] =>
[enabled] => 1
)
错误从何而来?我无法弄清楚。
请帮忙! 提前致谢 :)
I am working on Nick Baker's CakePHP Facebook plugin. I am doing exactly as he has described in his screencast http://tv.cakephp.org/video/webtechnick/2011/01/12/nick_baker_--_facebook_integration_with_cakephp
But when I am trying to get the currently logged in user $this->Connect->user() using the Facebook.Connect component, i do not get any return value.....
When I debug the current session, (debug($this->Session);), i get the following :
app/app_controller.php (line 10)
SessionComponent Object
(
[__active] => 1
[__bare] => 0
[valid] =>
[error] => Array
(
[2] => FB doesn't exist
)
[_userAgent] => 36267ef3c9f36ab07ac8e68d1deb03aa
[path] => /sharefaredev
[lastError] => 2
[security] => medium
[time] => 1301436341
[sessionTime] => 1301448341
[cookieLifeTime] => 720000
[watchKeys] => Array
(
)
[id] =>
[host] => localhost
[timeout] =>
[enabled] => 1
)
Where does the error come from? I'm not able to make that out.
Please help!
Thanks in Advance :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否检查过 Facebook 的应用程序设置以确保 App Settongs >网站>核心设置反映了您当前的工作地点吗?
Have you checked facebook's app settings to ensure that App Settongs > Website > Core Settings reflect your current working site?