Пример #1
0
 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();
   }
 }
Пример #2
0
 @Override
 protected void fbOnUserInfoRequestComplete() {
   UserManager.getInstance(this).loginSuccess(mUserJson);
 }