/** * 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 facebookDialogCallback the callback for handling FacebookDialog results, can be null */ 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); } if (LikeActionController.handleOnActivityResult(activity, requestCode, resultCode, data)) { return; } handleFacebookDialogActivityResult(requestCode, resultCode, data, facebookDialogCallback); }