views:

15

answers:

0

I'm quite new to using APIs and I'm confused as to how I should (or even can) implement a video upload on my private server.

The idea is that the FB video upload can sometimes be unreliable, is relatively slow to a direct server to server connection and can't conduct batch or simultaneous uploads efficiently or reliably.

I'm thinking that if I use FTP to transfer the files to my server and then run some php combined with the api to upload it, I can save myself some time, frustration and local bandwidth allowance.

Can this be done? I'm guessing it would have something to do with the

video.upload()

function, but I'm not sure how the code would look. I'm finding the FB dev wiki confusing.

Could any one of you fine people give me a code example? Or if you have a better solution to my dilemma, I would very much appreciate advice.

Thanks in advance.