Download videos to FaceBook using the JavaScript JavaScript ONLY

How?? I am trying this code:

FB.api('/me/videos', 'post', { message: FacebookMessage, access_token: accessToken, source: "@HERE_WORKING_URL", // url: type[1], type: 'video', }, function(response){ if (!response || response.error) { console.log('Error occured'+response.error.message); } else { console.log('Post ID: ' + response.id); } comp(s++,photon.length); }); 

and I get an error: an error occurred (# 353) A video file is missing

What happened? How can I send a video? Please, help!

If I send a photo, its work!

+4
source share

Source: https://habr.com/ru/post/1415394/


All Articles