.setMessage(streamPublishMessageTextBox.getText())
.setAttachment(Attachment.createAttachment().setName("FacebookGWT").setCaption("Facebook API for GWT").setDescription("Facebook GWT is a Java API of the Facebook JavaScript API for use with Google Web Toolkit.").setHref("http://denormans.github.com/FacebookGWT/"))
.setActionLinks(Link.createLink("Code", "https://github.com/denormans/FacebookGWT"), Link.createLink("Issues", "https://github.com/denormans/FacebookGWT/issues"))
.setUserMessagePrompt("Share your thoughts about FacebookGWT");
Log.info("Stream publish options: " + streamPublishOptions.toJSONString());
FBGWT.UI.publishToStream(DisplayFormats.Dialog, streamPublishOptions, new AsyncCallback<StreamPublishCallbackResponse>() {
@Override
public void onFailure(final Throwable caught) {
handleError("Error publishing to stream", caught);