JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q11378F
  • License ISC

Helping to upload video in facebook ad manager

Package Exports

  • facebook-business-video-upload

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (facebook-business-video-upload) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

facebook-business-video-upload

Helping to upload video in facebook ad manager.

Usage

const fs = require('fs');
const uploadEngine = require('facebook-business-video-upload');
 
const options = {
  token: "TOKEN",
  id: "ID", // page_id or user_id or event_id or group_id 
  stream: fs.createReadStream('./sample.mp4'), // Video file path,
  title: "test video",
  description: "test description"
};
 
uploadEngine(options).then((response) => {
  console.log('\n **********************');
  console.log('\n Result : ', response);  //  { success: true, video_id: '987654321' }
  console.log('\n **********************');
}).catch((error) => {
  console.error(error);
});