Code example for FragmentActivity

Methods: onActivityResult

    * This is necessary so Facebook SDK can perform Login for us using their own Activity. 
    * Putting this code in the {@link MyNewsfeedFragment} wouldn't work. 
   public void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
      Session.getActiveSession().onActivityResult(this, requestCode, resultCode, data);
Experience pair programming with AI  Get Codota for Java