How do i upload video through code

Apr 2, 2008 at 4: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,
Jun 18, 2008 at 10:58 PM
Hi Shadha,

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

Jun 1, 2009 at 2:05 PM
Edited Jun 1, 2009 at 2:10 PM

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

Jun 1, 2009 at 8:34 PM
Edited Jun 1, 2009 at 8: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 =;
   var data = new FileInfo(@"..\..\..\facebook.tests\Data\Butterfly.wmv");

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


Jun 1, 2009 at 8: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.