Android post picture to Facebook wall

first thing is that you are not using graph api to upload the pictures… u r using the old rest api… try to use graph api, its simple…

Use following code:

Bundle param = new Bundle();
param.putString("message", "picture caption");
param.putByteArray("picture", ImageBytes);
mAsyncRunner.request("me/photos", param, "POST", new SampleUploadListener());

According to error message, it looks like its giving errors in getting bytes from intent’s bundle…

Leave a Comment