java - Upload video to Facebook, with RestFB -
im trying upload video restfb, tried 2 days, still cant it, can me this? done.
i know can upload video method video.upload, , must send request facebook video server, create class videolegacyfacebookclient
, , put there server, tried make new execute method, wich take inputstream binaryattachement
video, , try make code:
inputstream is=new datainputstream(new fileinputstream(new file("/home/hagen/testing.avi"))); postid = facebookclient.execute("video.upload", null, string.class,is, parameter.with("title", "my test video"), parameter.with("description", "this description"));
what wrong, can me?
restfb 1.6.5 may fix problem; http://restfb.googlecode.com/svn/tags/restfb-project-1.6.5/changelog says:
added support new video upload api endpoint via https://graph-video.facebook.com , fixed multipart filename bug broke video uploads.
Comments
Post a Comment