How do i upload video through code

Apr 2, 2008 at 5:07 PM
Hi, I am a microsoft developer working on .net, ajax , i tried using the Facebook API and the Facebook toolkit, but i did not find any method that allows me to upload videos through code.
Please let me know if a mechanism already exists. Please i need your earliest reply.
Thanks in advance,
Shradha
Jun 18, 2008 at 11:58 PM
Hi Shadha,

Have you figure this out?  I am wondering the same.

Thanks,
Jeff
Jun 1, 2009 at 3:05 PM
Edited Jun 1, 2009 at 3:10 PM

I'd also like to know if there's a way to upload .wav files.

Coordinator
Jun 1, 2009 at 9:34 PM
Edited Jun 1, 2009 at 9:35 PM

if you look at the unit test code for video.upload.  You'll see an example where I got it to work.

        public void uploadTest()
        {
            API parent = _api;
            video target = _api.video;
   var data = new FileInfo(@"..\..\..\facebook.tests\Data\Butterfly.wmv");

            var actual = target.upload("test", "video upload test", data);
            Assert.IsNotNull(actual);

        }

Coordinator
Jun 1, 2009 at 9:43 PM

as a clarification.  You'll need the version 2.1 release for that code to work.  This is posted under planned releases and should be released later this week.