如何禁用单个SIgn On的脸书android应用程序? [英] How to disable Single SIgn On for facebook android app?

查看:160
本文介绍了如何禁用单个SIgn On的脸书android应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个需要多个用户的用户凭据的应用程序。如果启用了SSO,则在使用我们的应用程序后,我无法注销用户(提供的Facebook应用程序安装在设备上)。会话仍然存在,登录用户的唯一方法是通过Facebook应用程序,在下一个用户可以登录到我们的应用程序之前。

I am building an application which needs user credentials for multiple users. If SSO is enabled, then I cannot logout the user (provided Facebook app is installed on the device) after using our application. The session persists, and the only method for logging out the user is via the facebook app, before the next user can login to our application.

所以,我需要SSO禁用,这是独立于设备上的Facebook应用程序。

So, I need the SSO disabled, so that it is independent of the facebook app on the device.

我已经看到在这里查询的问题:在Facebook中禁用并启用单一登录

I have seen the problem being queried here: Disabling and Enabling Single Sign On in Facebook as Required

我知道在SDK 2.0中,它可以已经使用FORCE_DIALOG_AUTH完成,但在SDK 3. *中,我该怎么办?
http://开发人员.facebook.com / docs / tutorials / androidsdk / 3.0 / upgrade-from-2.0-to-3.0 /

I know that in SDK 2.0, it could have been done using FORCE_DIALOG_AUTH, but in SDK 3.*, how do I go about it? http://developers.facebook.com/docs/tutorials/androidsdk/3.0/upgrading-from-2.0-to-3.0/

PS:任何其他方法进行独立于Facebook应用程序的登录和注销也将工作

推荐答案

请参阅OpenRequest中的setLoginBehavior,您传递给Session.openFor [阅读|发布] - https://developers.facebook.com/docs/reference/android/3.0/Session.OpenRequest#setLoginBehavior%28SessionLoginBehavior%29

See setLoginBehavior in the OpenRequest that you pass to Session.openFor[Read|Publish] - https://developers.facebook.com/docs/reference/android/3.0/Session.OpenRequest#setLoginBehavior%28SessionLoginBehavior%29

您可以设置它至SUPPRESS_SSO,将使用Web对话而不是SSO - https://开发ers.facebook.com/docs/reference/android/3.0/SessionLoginBehavior#SUPPRESS_SSO

You can set it to SUPPRESS_SSO which will use the web dialog instead of SSO - https://developers.facebook.com/docs/reference/android/3.0/SessionLoginBehavior#SUPPRESS_SSO

这篇关于如何禁用单个SIgn On的脸书android应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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