Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

162
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda