If you need to post a predefined message to a User's Facebook Wall, you shouldn't be using the facebook.dialog
method.
For more on why that shouldn't be used, read my answer posted here: https://stackoverflow.com/a/13507030/450534
That being said, to get the result you want, try this piece of code:
Bundle postStatusMessage = new Bundle();// ADD THE STATUS MESSAGE TO THE BUNDLEpostStatusMessage.putString("message", "Let's hangout at "+ placeName);postStatusMessage.putString("link", "www.the_example_web_address.com");Utility.mAsyncRunner.request("me/feed", postStatusMessage, "POST", new StatusUpdateListener(), null);
And this is where you can check the response from the Facebook API by parsing the String response
:
private class StatusUpdateListener extends BaseRequestListener { @Override public void onComplete(String response, Object state) {}
A point to note here is, you cannot pass a message
with a link in it. To elaborate (as the earlier statement might sound confusing), You cannot pass a link in the message
tag with a link that will be parsed by Facebook and show up in a post like links on FB do.
To see the difference clearly, post the status update using the code above and see how it looks on Facebook. Then, after having done that, remove this postStatusMessage.putString("link", "www.the_example_web_address.com");
from the code above and include the link in the message
tag, post it and see how it looks on Facebook.