fb-video-uploader
v0.0.2-5
Published
fb video uploader
Downloads
12
Readme
fb-video-uploader
FB Video Uploader uploads videos to your Facebook Ad Account directly from the browser using the chunked upload strategy.
Install
npm install fb-video-uploader --save
Usage
import fbVideoUploader from "fb-video-uploader";
async function handleInputChange(e) {
e.preventDefault();
const file = e.target.files[0];
const adAccountId = <ad account>;
const providerToken = <auth token>;
fbVideoUploader.config({
adAccountId: adAccountId,
providerToken: providerToken,
debug: 1
})
const videoId = await fbVideoUploader.upload(file);
}
<input type="file" onchange="handleInputChange">
Contributing Guide
See CONTRIBUTING.md
Change Log
See CHANGELOG.md
License
See LICENSE