code: public void onActivityResult(int requestCode, int resultCode, Intent data,
                  FacebookDialog.Callback facebookDialogCallback) {
          Session session = Session.getActiveSession();
          if (session != null) {
              session.onActivityResult(activity, requestCode, resultCode, data);
          }
  
          handleFacebookDialogActivityResult(requestCode, resultCode, data, facebookDialogCallback);
      }
docs: To be called from an Activity or Fragment's onActivityResult method, when the results of a FacebookDialog
  call are expected.
  
  @param requestCode the request code
  @param resultCode the result code
  @param data the result data
  @param dialogCallback the callback for handling FacebookDialog results, can be null