I want to post a video with Rest FB
try {
FileInputStream fis = new FileInputStream(new File("MySuperFile"));
FacebookType response = facebookClient.publish(user.getId()+"/videos", FacebookType.class,
BinaryAttachment.with("formatOfMySuperVideo",fis),
Parameter.with("description","TheDescriptionOfMySuperVideo"));
} catch (FileNotFoundException ea) {}
it works very well BUT i would like to know if it's possible to know the "status" of the uploading. I mean i would like to have a progress bar or the percentage or something like that.
Thanks a lot !
Your publish method will return an instance of a Video i think, where you can find the source code here : Video.java
Also check response is the correct type :
You can now get the video status : Video.java#L644
Edit : It look you have to change your code a bit to get a Video :