2

How do I upload a video from a server to Facebook, with javascript/jquery/ajax, but without using php?

I tried calling:

 FB.api('/me/videos', 'POST', { source: url, name: title }, iCallback);

but this is returning an error: "(#353) Missing video file". I checked the url, and it's valid and directs to a valid video file on the server.

Thanks for your help!

iRadium
  • 255
  • 2
  • 10
  • Possibly similar to: http://stackoverflow.com/questions/4264599/facebook-new-javascript-sdk-uploading-photos-with-it (This answer contains a way to do it: http://stackoverflow.com/a/5455783/323659) – Samet Atdag Feb 06 '12 at 14:05
  • saw that post earlier. it deals with photos, not videos. i think there is a difference in the fields required in the api – iRadium Feb 06 '12 at 14:52
  • Did you add the "@" sign to the beginning of the path to the video in the source parameter? – Lix Feb 06 '12 at 15:49
  • Lix - i tried adding the "@" sign, but got the same result. could you point me for an example using @ in file names from server (not on the local machine)? – iRadium Feb 06 '12 at 16:19

1 Answers1

-1

Try using "file_url" instead "source".