title: Facebook Graph API POST video upload source parameter not working
body: <p>It works fine with <strong>file_url</strong> on a video file hosted anywhere, but not with my local video file with the <strong>source</strong> parameter</p>
  <p>This is my python code for the POST request:</p>
  <pre><code>import requests
  
  url2 = 'https://graph-video.facebook.com/v10.0/105868438278259/videos'
  myobj2 = {
      'access_token': '****',
      'source': 'file_example_MP4_480_1_5MG.mp4', #it's in the same folder
      'title': 'test title 123456',
      'description': 'Video description',
      }
  
  x2 = requests.post(url2, data = myobj2)
  print (x2.text)
  </code></pre>
  <p>I'm using Facebook Graph API v10, Non-Resumable Upload, the only limitations are:</p>
  <ul>
  <li>Video File have to be less than 1 GB</li>
  <li>Video File have to be less than 20 minutes long</li>
  </ul>
  <p>My video is 1 minute long and 5 mb in size, but I receive this response:</p>
  <pre><code>{&quot;error&quot;:{&quot;message&quot;:&quot;There was a problem uploading your video file. Please try again.&quot;,&quot;type&quot;:&quot;OAuthException&quot;,&quot;code&quot;:390,&quot;error_subcode&quot;:1363030,&quot;is_transient&quot;:true,&quot;error_user_title&quot;:&quot;Tiempo de espera agotado al subir el video&quot;,&quot;error_user_msg&quot;:&quot;Se agot\u00f3 el tiempo de espera antes de que se terminara de subir el video. Probablemente se debe a una conexi\u00f3n de red lenta o a que el video que intentas subir es demasiado grande. Vuelve a intentarlo.&quot;,&quot;fbtrace_id&quot;:&quot;AFTgEBhNlaGPyWaGs_RFi-y&quot;}}
  </code></pre>
  <p>I have not a low speed connection and my file is not too big according to the limitations</p>
  <p>This is the documentation from Facebook Graph API
  <a href="https://developers.facebook.com/docs/video-api/guides/publishing/?locale=en_US#non-resumable-upload" rel="nofollow noreferrer">https://developers.facebook.com/docs/video-api/guides/publishing/?locale=en_US#non-resumable-upload</a></p>
  <p>I tried adding the <strong>content-type: video/mp4</strong> as a parameter too, but it isn't working</p>
  <p>What am I missing?</p>