Code example for FragmentActivity

Methods: onActivityResult

0
    * This is necessary so Facebook SDK can perform Login for us using their own Activity. 
    * Putting this code in the {@link com.dhsoftware.android.FacebookNewsfeedSample.fragments.MyNewsfeedFragment MyNewsfeedFragment} wouldn't work. 
    */ 
   @Override 
   public void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
      Session.getActiveSession().onActivityResult(this, requestCode, resultCode, data);
   } 
 
}