fb-video-uploader

0.0.2-5 • Public • Published

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

Package Sidebar

Install

npm i fb-video-uploader

Weekly Downloads

6

Version

0.0.2-5

License

none

Unpacked Size

95.3 kB

Total Files

8

Last publish

Collaborators

  • kiwchang