Cakephp Facebook Connect 使用 Nick Baker 的插件:错误=> FB不存在

发布于 2024-10-27 12:21:42 字数 1063 浏览 0 评论 0原文

我正在开发 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

流云如水 2024-11-03 12:21:42

您是否检查过 Facebook 的应用程序设置以确保 App Settongs >网站>核心设置反映了您当前的工作地点吗?

Have you checked facebook's app settings to ensure that App Settongs > Website > Core Settings reflect your current working site?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文