Coder Social home page Coder Social logo

fbsamples / reels_publishing_apis Goto Github PK

View Code? Open in Web Editor NEW
41.0 20.0 17.0 2.73 MB

This repository contains sample apps for developers who are interested in integrating with Reels APIs.

License: Other

JavaScript 64.04% Pug 22.29% CSS 7.41% Dockerfile 0.35% Shell 5.90%

reels_publishing_apis's Introduction

reels_publishing_apis's People

Contributors

skhan75 avatar ani0989 avatar pestevez avatar dkstevekwak avatar pedrojperez1 avatar kareem1234 avatar nickology avatar domitian avatar everton-rosario avatar

Stargazers

 avatar  avatar  avatar Purwadi avatar Anne Thorpe avatar Mayomi Ayandiran avatar Jeffrey avatar Muhammad Zakir Ramadhan  avatar Yashraj Singh avatar Guilherme Jansen avatar Alex Simpson avatar  avatar  avatar  avatar Quan Nguyen avatar  avatar LUÍS CARLOS DE SOUZA  MENEZES avatar Charles Cao avatar Timur Guseynov avatar Dustin Metcalf avatar Matthijs de Heus avatar Sospeter Karanja avatar  avatar StaringCat avatar Adrian Mohnacs avatar  avatar Jérémie Zarca avatar Dat Bui Tien avatar Adrien MARION avatar puy avatar Ronald Tejada  avatar Alan Saputra Lengkoan avatar Joonwon Choi avatar Joshua Paul Verdin avatar Xegulon avatar Jitin Gambhir avatar  avatar Tiago Paes avatar Văn Anh avatar Tomáš Mládek avatar Dylan Parent avatar

Watchers

Elomar Souza avatar Peter Chang avatar Shaon Diwakar avatar  avatar  avatar  avatar Gisela avatar Yasser Mohammed avatar Jaya avatar  avatar Cami Williams avatar Josh LeVitre avatar Brian Odong avatar  avatar  avatar Rolando Castanon avatar  avatar  avatar Vinicius Kamakura avatar  avatar

reels_publishing_apis's Issues

Exclude .env file from source control

The .env file is not ignored, and since to run the app it is required to modify it, the result is that it gets tracked as a modified file. To prevent this file to be submitted by mistake with user fields that may be sensitive, we should exclude it from source control.

REELS API Copyright Check Always Returns Error

From the Meta for Developers Community Forum:

I've been running into some difficulties lately with uploading videos for both Reels and Stories on Facebook. Whenever I try to upload, the process seems to hit a snag, and I can't seem to get my content to go live.

Looking forward to hearing from you all and hopefully finding a solution together! Thanks in advance for your help."

Steps to Replicate
After Uploading Videos to the following Graph APIs https://graph.facebook.com/v19.0/page_id/video_stories https://graph.facebook.com/v19.0/page_id/video_reels
Checking the status of the Videos using this API https://graph.facebook.com/v19.0/video_id?fields=status
Response : { "status": { "video_status": "processing", "processing_progress": 0, "uploading_phase": { "status": "complete", "bytes_transferred": 151626 }, "processing_phase": { "status": "not_started" }, "publishing_phase": { "status": "not_started" }, "copyright_check_status": { "status": "error" } }, "id": "*****" }


It looks like this is happening to quite a few people when trying to upload a Reel, even when uploading the sample video used in this repo. Additionally, I'm not seeing any error handling for copyright checks when looking at the Facebook Reel Posting here. I notice this repo uses 14.0 - is this a known issue with 19.0?

My Reels are Getting "ERROR" as status_code.

Hi I am using below code to publish my reels:

But the issue now is i am getting error
{ status_code: 'IN_PROGRESS', id: '18114349573394473' }
{ status_code: 'IN_PROGRESS', id: '18114349573394473' }
{ status_code: 'ERROR', id: '18114349573394473' }
{ status_code: 'ERROR', id: '18114349573394473' }
{ status_code: 'ERROR', id: '18114349573394473' }
.
.
.

while calling:

  try {
    const response = await axios.get(url, {
      params: {
        fields: 'status_code',
        access_token: accessToken,
      }
    });```

fb_reels_publishing_api_sample's `npm install` failure due to '[email protected]'

Encountered the following error message while following the fb_reels_publishing_api_sample instruction, specifically during the npm install step:

$insta_reels_publishing_api_sample main > npm install                                                                                                            10:05:04
npm WARN deprecated [email protected]: Multer 1.x is affected by CVE-2022-24434. This is fixed in v1.4.4-lts.1 which drops support for versions of Node.js before 6. Please upgrade to at least Node.js 6 and version 1.4.4-lts.1 of Multer. If you need support for older versions of Node.js, we are open to accepting patches that would fix the CVE on the main 1.x release line, whilst maintaining compatibility with Node.js 0.10.

added 262 packages, and audited 263 packages in 16s

39 packages are looking for funding
  run `npm fund` for details

3 high severity vulnerabilities

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

$insta_reels_publishing_api_sample main > npm audit                                                                                                          18s 10:05:24
# npm audit report

dicer  *
Severity: high
Crash in HeaderParser in dicer - https://github.com/advisories/GHSA-wm7h-9275-46v2
No fix available
{
node_modules/dicer
  busboy  <=0.3.1
  Depends on vulnerable versions of dicer
  node_modules/busboy
    multer  <=2.0.0-rc.3
    Depends on vulnerable versions of busboy
    node_modules/multer

3 high severity vulnerabilities

Some issues need review, and may require choosing
a different dependency.

Looks like the issue can be resolved by following the suggestion above:

diff --git a/insta_reels_publishing_api_sample/package.json b/insta_reels_publishing_api_sample/package.json
index f308153..48ea1ff 100644
--- a/insta_reels_publishing_api_sample/package.json
+++ b/insta_reels_publishing_api_sample/package.json
@@ -16,7 +16,7 @@
     "express": "^4.17.3",
     "express-session": "^1.17.2",
     "fs": "^0.0.1-security",
-    "multer": "^1.4.4",
+    "multer": "1.4.4-lts.1",
     "path": "^0.12.7",
     "pug": "^3.0.2"
   },
(END)

I'm submitting this here because I'm not able to (or don't know how to) make a pull request for this change.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.