Thursday, November 19, 2009

new facebook4gwt Version 1.0.6

I have made changes in preparation for the December 20, 2009 deprecation of the showFeedDialog() method.

Users should use streamPublish() instead.

Example of use:

FacebookStory story = new FacebookStory();

story.putData("name", "title"); //you can use {*actor*} which uses the logged users name

story.putData("caption", "tehasdsasdf");

story.putData("description", "tehasdsasdf");

story.putData("href", "http://www.cnn.com");//adds href for 'name'

story.addImage("http://i.cdn.turner.com/cnn/.element/img/3.0/global/header/hdr-main.gif", "http://www.cnn.com");

story.setActionLinkText("another link to something");
story.setActionLinkHref("http://www.google.com");

story.streamPublish();