CakePHP facebook 集成注销问题与 CakePHP-Facebook-Plugin [英] CakePHP facebook integration logout issue with CakePHP-Facebook-Plugin

查看:23
本文介绍了CakePHP facebook 集成注销问题与 CakePHP-Facebook-Plugin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种使用 CakePHP-Facebook-Plugin 登录用户的方法退出我的应用程序,但不要将他们从他们自己的 facebook 中注销.

I'm looking for a way with the CakePHP-Facebook-Plugin log users out of my app, but not log them out of their own facebook.

如果我调用我的应用程序 logout() 函数,无论我做什么,我都会继续通过 Facebook 重新登录.如果我在视图中使用插件 facebook 助手来生成一个注销按钮 ($this->Facebook->logout()),它肯定会将用户从我的应用程序中注销......但它也会将用户从他们自己的 facebook 中注销这有点荒谬.

If I call my apps logout() function no matter what I do I just keep getting logged back in via facebook. If I use the plugins facebook helper in the view to generate a logout button ($this->Facebook->logout()), it definetly logs the user out of my app...but it also logs them out of their own facebook which is kinda ridiculous.

那么我该如何解决这个问题,让用户退出我的应用程序,但让他们登录 Facebook.

So how do I work around this to log users out of my app, and but leave them logged into facebook.

推荐答案

让他们退出"您的应用程序(这意味着他们下次尝试使用该应用程序时,将被要求再次验证您的应用程序),然后使用他们的用户访问令牌向 me/permissions 发送 HTTP DELETE 命令.

To have them "logout" of your app (meaning the next time they try to use the app, they're going to be asked to authenticate your app again), then send an HTTP DELETE command to me/permissions using their user access token.

这篇关于CakePHP facebook 集成注销问题与 CakePHP-Facebook-Plugin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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