if (session == null) {
text.setHTML("Need to login to Facebook first.");
return;
}
String path = session.getUserID() + "/feed";
Params params = Params.createParams();
final String message = "I am checking out the GWT Mobile PhoneGap app!";
params.set("message", message);
Facebook.api(path, "post", params, new Callback() {
@Override
public void onSuccess(Response response) {
if (response.get("id") != null) {
text.setHTML("Message \"" + message + "\" has been posted to your facebook wall.<br/>"