public void loginDone() { try { if (!mUserJson.isNull("access_token") && !mUserJson.getString("access_token").isEmpty()) { Session.openActiveSessionWithAccessToken( this, AccessToken.createFromExistingAccessToken( mUserJson.getString("access_token"), null, null, null, null), this.fbStatusCallback); } else { UserManager.getInstance(this).loginSuccess(mUserJson); } } catch (JSONException e) { UserManager.getInstance(this).loginSuccess(mUserJson); e.printStackTrace(); } }
@Override protected void fbOnUserInfoRequestComplete() { UserManager.getInstance(this).loginSuccess(mUserJson); }