@Override protected FacebookDialogBase<ShareContent, Sharer.Result> getDialog() { final ShareDialog dialog; if (ShareButton.this.getFragment() != null) { dialog = new ShareDialog(ShareButton.this.getFragment() , getRequestCode()); } else { dialog = new ShareDialog(getActivity(), getRequestCode()); } return dialog; }
@Override protected FacebookDialogBase<ShareContent, Sharer.Result> getDialog() { final MessageDialog dialog; if (SendButton.this.getFragment() != null) { dialog = new MessageDialog(SendButton.this.getFragment() , getRequestCode()); } else { dialog = new MessageDialog(getActivity(), getRequestCode()); } return dialog; }
abstract protected FacebookDialogBase<ShareContent, Sharer.Result> getDialog();