New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

facebook-api-video-upload

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

facebook-api-video-upload

A handy function to upload video in chunk on the facebook graph.

  • 1.3.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
192
decreased by-13.51%
Maintainers
1
Weekly downloads
 
Created
Source

XO code style

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 = require('fs');
const fbUpload = require('facebook-api-video-upload');

const args = {
	token: yourtoken, // with the permission to upload
	id: yourid, //The id represent {page_id || user_id || event_id || group_id}
	stream: fs.createReadStream('./test/fixture/fixture.mp4') //path to the video,
	title: "my video",
	description: "my description"
};

fbUpload(args).then((res) => {
	console.log('res: ', res);
	//res:  { success: true, video_id: '1838312909759132' }
}).catch((e) => {
	console.error(e);
});

License

MIT © MrdotB

Keywords

FAQs

Package last updated on 23 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc