如何启用facebook SessionLoginBehavior我的登录弹出消失

时间:2018-04-28 00:24:42

标签: android firebase facebook-graph-api firebase-authentication

这是初始化

 btnSignInFacebook.registerCallback(mCallbackManager, new FacebookCallback<LoginResult>() {
            @Override
            public void onSuccess(LoginResult loginResult) {
                progressDialog.show();
                Log.d(TAG, "facebook:onSuccess:" + loginResult);
                handleFacebookAccessToken(loginResult.getAccessToken());
            }



        });

我需要启用这个,所以我的对话弹出我们可以stob dissapearing但是我被告知是无法识别的

public enum SessionLoginBehavior {
    /**
     * Specifies that Session should attempt Single Sign On (SSO), and if that
     * does not work fall back to dialog auth. This is the default behavior.
     */
    SSO_WITH_FALLBACK(true, true),

    /**
     * Specifies that Session should only attempt SSO. If SSO fails, then the
     * open or new permissions call fails.
     */
    SSO_ONLY(true, false),

    /**
     * Specifies that SSO should not be attempted, and to only use dialog auth.
     */
    SUPPRESS_SSO(false, true);

    private final boolean allowsKatanaAuth;
    private final boolean allowsWebViewAuth;

    private SessionLoginBehavior(boolean allowsKatanaAuth, boolean allowsWebViewAuth) {
        this.allowsKatanaAuth = allowsKatanaAuth;
        this.allowsWebViewAuth = allowsWebViewAuth;
    }

    boolean allowsKatanaAuth() {
        return allowsKatanaAuth;
    }

    boolean allowsWebViewAuth() {
        return allowsWebViewAuth;
    }

我有启用会话登录行为的类

MySQLWorkbench.exe -log-level=debug3

我正在使用&#39; com.facebook.android:facebook-android-sdk:[4,5)&#39;

0 个答案:

没有答案