@Override
 public void onSuccess(Sharer.Result result) {
   if (result.getPostId() != null) {
     mProgressBar.setVisibility(ProgressBar.INVISIBLE);
     PostToFacebookFrgamentDialog.this.dismiss();
   }
 }
Пример #2
0
 @Override
 public void onSuccess(Sharer.Result result) {
   Log.d(DEBUG_TAG, "Facebook Dialog Callback SUCCESS");
   Log.d(DEBUG_TAG, "Post id: " + result.getPostId());
   // Display a toast with not posted if that's the case
   Toast.makeText(ResultActivity.this, "You shared this post.", Toast.LENGTH_SHORT).show();
 }