@Override
 protected void onPostExecute(Boolean result) {
   super.onPostExecute(result);
   loadingControl.stopLoading();
   if (result.booleanValue()) {
     GuiUtils.info(R.string.share_facebook_success_message);
   }
   Dialog dialog = FacebookFragment.this.getDialog();
   if (dialog != null && dialog.isShowing()) {
     FacebookFragment.this.dismissAllowingStateLoss();
   }
 }
 @Override
 protected void onPreExecute() {
   super.onPreExecute();
   sendButton.setEnabled(false);
   loadingControl.startLoading();
 }