facebook-api-video-upload
Upload a video in chunk on the facebook api. more info
Install
$ npm i fb-upload-video-api --save
Tested on OS X and Linux.
Usage
const fs = ;const MovieUpload = ; const emitter = ; const args = token: "YOURTOKEN" // with the permission to upload id: "YOURID" //The id represent {page_id || user_id || event_id || group_id} videoSize: size // integer; async { try // Recieve start_offset and end_offset of facebook init and upload_chunk api emitter // Show percent of uploading emitter const video_id = await emitter; console; catcherr console }
Features
- Support upload videos larger than 2gb (maximun size of buffer in nodejs)
- Don't need to load all video into buffer
License
MIT © MrdotB