I have a Java application and i try to upload a photo to Facebook via graph api with Jersey.
Until now everything works fine with Jersey I can publish messages etc.
I searched hours to find an example how to do it.
The best tutorial I found was this one:
http://neopatel.blogspot.de/2011/04/jersey-posting-multipart-data.html
The only thing I know is that I have to use multipart/formdata.
Does anyone have an example or know have to do this?
Did you try using the jersey-multipart package?
You create a
FormDataMultiPartwith aFileDataBodyPartfor the file and aFormDataBodyPartfor the message and access_token..