facebook-api-video-upload
Upload a video in chunk on the facebook api. more info
Install
$ npm i facebook-api-video-upload --save
Tested on OS X and Linux.
Usage
const fs = ;const fbUpload = ; const args = token: "YOURTOKEN" // with the permission to upload id: "YOURID" //The id represent {page_id || user_id || event_id || group_id} stream: fs //path to the video, title: "my video" description: "my description" thumb: value: fs options: filename: 'fixture.jpg' contentType: 'image/jpg' // if you want the default thumb from the video just remove the field // you can add any extra fields from the api https://developers.facebook.com/docs/graph-api/reference/page/videos/#Creating // all keys except token, id, stream are passed to the final request; ;``` ## LicenseMIT © [MrdotB](https://github.com/MRdotB)