code: public void onSaveInstanceState(Bundle outState) {
          Session.saveSession(Session.getActiveSession(), outState);
          outState.putParcelable(DIALOG_CALL_BUNDLE_SAVE_KEY, pendingFacebookDialogCall);
      }
docs: To be called from an Activity or Fragment's onSaveInstanceState method.
  
  @param outState the bundle to save state in