Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

160
Views
Posting Video to Facebook page using graph api gives error

I am following the facebook docs here https://developers.facebook.com/docs/video-api/guides/publishing/ to publish a video to a particular facebook page but I keep getting errors.

Here is my code:

    try {
        let mediaPostParams = new URLSearchParams();
        let mediaUploadPath = `https://graph.facebook.com/${pageId}/videos`
        mediaPostParams.append('url', "www.somelocationwherevideoishosted.com/vido.mp4");
        mediaPostParams.append('access_token', pageAccessToken);
        let response = await axios.post(mediaUploadPath, mediaPostParams);
      }
    catch (e) {
        console.log(e); //I keep getting the error message: 'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "There was a problem uploading your video file. Please try again."',
    }

All I keep getting is this error:

'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "There was a problem uploading your video file. Please try again."',

I have no idea where I am going wrong.

Any insights would be greatly appreciated. Thank you.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I don't know why it throws an Authenticate error but i have a suggest:

  1. If you want to upload a video by url. User file_url for param.
  2. The url of video should start with http:// or https://.
  3. I used this url to upload a video to page: https://graph.Facebook.com/v11.0/me/videos?access_token=<PAGE_ACCESS_TOKEN>&file_url=<URL>&description=<DESCRIPTION>&published=true
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!