这是初始化
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;