Facebook OAuth2注销不会删除fb_ cookie [英] Facebook OAuth2 Logout does not remove fb_ cookie

查看:166
本文介绍了Facebook OAuth2注销不会删除fb_ cookie的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是以前的工作,所以我不知道出了什么问题。
用户可以登录到Facebook,只是罚款。注销是问题。

This used to work so I'm not sure what went wrong. User is able to login to Facebook just fine. Logging out is the problem.

我通过将用户重定向到Facebook注销php脚本来登录用户。 $ facebook-> getLogoutUrl();

I log the user out by redirecting them to the Facebook logout php script. $facebook->getLogoutUrl();

当用户点击该链接时, Facebook页面。但是,当他们被引导回我的网站时,我注意到fb_ cookie仍然存在。 PHP SDK仍然返回用户fb会话详细信息。奇怪的是,www.facebook.com显示我已经注销了Facebook。

When the user clicks on that link, they are logged out of the Facebook page. However, when they are directed back to my site, I notice the fb_ cookie is still there. PHP SDK still returns the user fb session details. The strange thing is going to www.facebook.com shows I'm already logged out of Facebook.

这里可能会出现什么问题?
谢谢,我被困了:(。

What could be going wrong here? Thanks, I'm stumped :(.

推荐答案

最后,我做的是生成一个 getLogoutUrl() with a next = address url to my logout script which will remove the Facebook cookie by setSession(null)

Okay, in the end, what I did was generate a getLogoutUrl() with a next= address url to my logout script which will remove the facebook cookie by setSession(null).

这篇关于Facebook OAuth2注销不会删除fb_ cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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