如何禁用单点登录Facebook的Andr​​oid应用程序?单点、应用程序、Andr、Facebook

2023-09-04 10:14:32 作者:365天熬夜冠军

我建设,需要用户凭据为多个用户的应用程序。如果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.

我看到这里的问题被查询:Disabling和启用单点登录了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://developers.facebook.com/docs/tutorials/androidsdk/3.0/upgrading-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应用程序也将工作的任何其他方法

推荐答案

请参阅setLoginBehavior在你传递给Session.openFor的OpenRequest [阅读全文|发布] - 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

您可以将其设置为SUP preSS_SSO其中会使用到的网络对话,而不是SSO - 的https://developers.facebook.com/docs/reference/android/3.0/SessionLoginBehavior#SUP$p$pSS_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