See https://developers.facebook.com/docs/reference/api/user/#feed , part of which reads:
You can create a link, message, or status message by sending an HTTP POST request to the PROFILE_ID / feed connection
So, try creating a message with something like:
String uid = "..."; DefaultFacebookClient client = ...; FacebookType postId = client.publish( uid + "/feed", FacebookType.class, Parameter.with("message", "Hello, world"), Parameter.with("link", "http://www.google.com"));
According to the documents, you can attach only one of the Facebook photos for publication.
source share