0.0.2-5 • Published 6 years ago

fb-video-uploader v0.0.2-5

Weekly downloads
19
License
-
Repository
github
Last release
6 years ago

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

0.0.2-5

6 years ago

0.0.2-4

6 years ago

0.0.2-3

6 years ago

0.0.2-2

6 years ago

0.0.2-1

6 years ago

0.0.2-0

6 years ago