使用 PHP SDK 似乎无法注销
我正在使用 PHP SDK,经过一番挫折后,我决定在这里提出这个问题。
所以就这样了。我在这个网站上做了一个登录按钮: http://greek-night.co.uk/
登录时一切顺利,但是当您尝试注销,它总是带我到 http://facebook.com/home.php
我已经尝试过一切都按代码进行,这里是我尝试过的一些示例。
first:
$logoutUrl = $facebook->getLogoutUrl();
Second:
$logoutUrl = $facebook->getLogoutUrl(array('next' => $base_url.'/'));
Third
$logoutparams = array( 'next' => 'http://greek-night.co.uk/' );
$logoutUrl = $facebook->getLogoutUrl($logoutparams);
我错过了什么吗?我还尝试使用“调试器”并得到了这个:
Application ID
212442552170234 : Greek Night
User ID
1112176796 : Michael Schinis
Issued
1328299200 : 12:00 pm Feb 3 2012
Expires
1328302800 : 1:00 pm Feb 3 2012
Valid False
Origin Web
Scopes friends_likes read_stream
Im using the PHP SDK, and after a lot of frustration, I decided to ask the question here.
So here it goes. I made a login button in this website:
http://greek-night.co.uk/
All goes well when you login, but when you try to logout, it always takes me to http://facebook.com/home.php
I have tried everything codewise, and here are some of the examples i tried.
first:
$logoutUrl = $facebook->getLogoutUrl();
Second:
$logoutUrl = $facebook->getLogoutUrl(array('next' => $base_url.'/'));
Third
$logoutparams = array( 'next' => 'http://greek-night.co.uk/' );
$logoutUrl = $facebook->getLogoutUrl($logoutparams);
Am I missing anything? I also tried using the 'Debugger' and got this:
Application ID
212442552170234 : Greek Night
User ID
1112176796 : Michael Schinis
Issued
1328299200 : 12:00 pm Feb 3 2012
Expires
1328302800 : 1:00 pm Feb 3 2012
Valid False
Origin Web
Scopes friends_likes read_stream
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果发生这种情况,您应该包含 JS SDK...
从 facebook connect 注销后始终重新加载页面
if this happened, you should include the JS SDK...
always make your page reload after logout from facebook connect