I have integrated the Facebook-sdk successfully in to my appplication. Now i am going to share a photo to Facebook. To do that I am using this code:
facebook
Depending on what you want to do, you need to give a target (first null) to this line of code:
mAsyncRunner.request(null, params, "POST", new SampleUploadListener(), null);
For example, if you're trying to make a post on the current users wall, it should look like:
mAsyncRunner.request("me/posts", params, "POST", new SampleUploadListener(), null);
You will need the correct permissions to do this: at least publish_stream.
See docs