I'm using Facebook Android SDK 4.+ to share photo by a button click in my app.
When user click the button, it will open the Facebook share photo page. After posting the photo I want to show alertbox which telling that photo has succesfully posted.
I've been using this
SharePhoto photo = new SharePhoto.Builder()
.setBitmap(bitmap)
.build();
SharePhotoContent content = new SharePhotoContent.Builder()
.addPhoto(photo)
.setShareHashtag(new ShareHashtag.Builder()
.setHashtag(hastag).build())
.build();
ShareDialog.show(SellingActivity.this,content);
By putting the alertbox after sharedialog.show didn't seem work. It would end up showed after button clicked, then facebook share photo page would show up after that.