{"id":20586076,"url":"https://github.com/mrdotb/facebook-api-video-upload","last_synced_at":"2025-10-06T11:11:23.474Z","repository":{"id":8979856,"uuid":"60437733","full_name":"mrdotb/facebook-api-video-upload","owner":"mrdotb","description":":ok_hand: A handy function to upload video in chunk on the facebook graph.","archived":false,"fork":false,"pushed_at":"2023-09-03T11:29:27.000Z","size":23262,"stargazers_count":56,"open_issues_count":0,"forks_count":23,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-16T04:08:26.545Z","etag":null,"topics":["facebook-api","upload-videos"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrdotb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-05T01:25:17.000Z","updated_at":"2024-10-18T01:18:20.000Z","dependencies_parsed_at":"2024-06-18T19:58:31.289Z","dependency_job_id":null,"html_url":"https://github.com/mrdotb/facebook-api-video-upload","commit_stats":{"total_commits":60,"total_committers":10,"mean_commits":6.0,"dds":0.35,"last_synced_commit":"3a1399f5c4f87e246ea93e9b8f2d67e98c1b0671"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrdotb%2Ffacebook-api-video-upload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrdotb%2Ffacebook-api-video-upload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrdotb%2Ffacebook-api-video-upload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrdotb%2Ffacebook-api-video-upload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrdotb","download_url":"https://codeload.github.com/mrdotb/facebook-api-video-upload/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230394228,"owners_count":18218707,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["facebook-api","upload-videos"],"created_at":"2024-11-16T07:10:09.352Z","updated_at":"2025-10-06T11:11:18.424Z","avatar_url":"https://github.com/mrdotb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# facebook-api-video-upload\n\u003e Upload a video in chunk on the facebook api. [more info](https://developers.facebook.com/docs/graph-api/video-uploads)\n\n## Install\n```\n$ npm i facebook-api-video-upload --save\n```\nTested on OS X and Linux.\n\n## Usage\n```javascript\nconst fs = require('fs');\nconst fbUpload = require('facebook-api-video-upload');\n\nconst args = {\n  token: \"YOURTOKEN\", // with the permission to upload\n  id: \"YOURID\", //The id represent {page_id || group_id}\n  stream: fs.createReadStream('./fixture.mp4'), //path to the video,\n  title: \"my video\",\n  description: \"my description\",\n  thumb: {\n    value: fs.createReadStream('./fixture.jpg'),\n    options: {\n      filename: 'fixture.jpg',\n      contentType: 'image/jpg'\n    }\n  }\n  // if you want the default thumb from the video just remove the field\n  // you can add any extra fields from the api https://developers.facebook.com/docs/graph-api/reference/page/videos/#Creating\n  // all keys except token, id, stream are passed to the final request\n};\n\nfbUpload(args).then((res) =\u003e {\n  console.log('res: ', res);\n  //res:  { success: true, video_id: '1838312909759132' }\n}).catch((e) =\u003e {\n  console.error(e);\n});\n```\n\n## Note\nThe Video API allows you to publish Videos on Pages and Groups. Publishing on Users is not supported. [Read more](https://developers.facebook.com/docs/video-api/guides/publishing)\n\n## License\nMIT © [MrdotB](https://github.com/MRdotB)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrdotb%2Ffacebook-api-video-upload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrdotb%2Ffacebook-api-video-upload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrdotb%2Ffacebook-api-video-upload/lists"}