I want to post a message on my wall, adding a PNG image (not a URL), as shown below. Everything works except that no image is posted. Is this even supported? Is there a size limit?
Bundle params = new Bundle();
params.putString("access_token", session.getAccessToken());
params.putString("description", message);
params.putString("caption", caption);
params.putString("name", name);
params.putString("link", link);
// Does not work:
// params.putByteArray("photo", pngByteArray);
// params.putByteArray("picture", pngByteArray);
WebDialog feedDialog = (new WebDialog.FeedDialogBuilder(this,
Session.getActiveSession(),
params)) /* ... */
As you can see, I'm using the FeedDialogBuilder
class to let the user confirm the wall post.