![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
facebook-api-video-upload
Advanced tools
A handy function to upload video in chunk on the facebook graph.
Upload a video in chunk on the facebook api. more info
$ npm i facebook-api-video-upload --save
Tested on OS X and Linux.
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('./fixture.mp4'), //path to the video,
title: "my video",
description: "my description",
thumb: {
value: fs.createReadStream('./fixture.jpg'),
options: {
filename: 'fixture.jpg',
contentType: 'image/jpg'
}
}
// if you want the default thumb from the video just remove the field
// you can add any extra fields from the api https://developers.facebook.com/docs/graph-api/reference/page/videos/#Creating
// all keys except token, id, stream are passed to the final request
};
fbUpload(args).then((res) => {
console.log('res: ', res);
//res: { success: true, video_id: '1838312909759132' }
}).catch((e) => {
console.error(e);
});```
## License
MIT © [MrdotB](https://github.com/MRdotB)
FAQs
A handy function to upload video in chunk on the facebook graph.
The npm package facebook-api-video-upload receives a total of 183 weekly downloads. As such, facebook-api-video-upload popularity was classified as not popular.
We found that facebook-api-video-upload demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.