marketing

facebook-nodejs-business-sdk: Simplify Meta Marketing

Get easy access to Meta Marketing APIs with this Node.js SDK, ideal.
intermediate30 minutes💵 Free (self-hosted)
618 stars250 forksJavaScriptGuide quality 9/10Updated 9/8/2026100% free · open source
What it is

Allows you to create scripts that send and retrieve data from Facebook APIs in a Node.js project.

Real use case example

"A founder wants to send Facebook lead ads directly to their HubSpot CRM. They use this SDK to set it up in 30 minutes by following these steps: first, they import the Facebook SDK and connect it to their app; next, they define their workflow and API calls to send leads from Facebook to HubSpot; finally, they deploy the code and test the connection. As a result, the founder can now automate the lead data flow from Facebook Ads to their CRM."

Best insideGeminiCodex CLIAny AI Client
When to use it
  • When automating Facebook ad campaigns and needing to integrate with other Node.js services
  • When building a custom application that requires access to Facebook Page data and insights
  • When needing to streamline and optimize Facebook marketing workflows using Node.js scripts
Ready-to-paste prompt
const {FacebookAdsApi} = require('facebook-nodejs-business-sdk'); const api = new FacebookAdsApi('YOUR_APP_ID', 'YOUR_APP_SECRET', 'YOUR_ACCESS_TOKEN'); api.getAdAccounts().then(accounts => console.log(accounts));
Heads up: Make sure to handle the Facebook API's rate limiting and access token expiration, as the SDK does not automatically refresh tokens or handle rate limiting errors, requiring additional error handling and token management code
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

🔑 Needs an API key

Works after you add credentials — the setup agent will ask you for them.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/facebook-nodejs-business-sdk && curl -fsSL https://workflowstacks.com/api/skills/facebook-nodejs-business-sdk/claude-skill -o ~/.claude/skills/facebook-nodejs-business-sdk/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How facebook-nodejs-business-sdk: Simplify Meta Marketing works
Codeflow
Free to inspect

Facebook-nodejs-business-sdk: Simplify Meta Marketing is a large JavaScript project (~58k lines across 1262 code files, plus 11 test files). Setup is light: installs like a normal app. Reading the code is optional. Last commit a month ago, Other license, has a test suite.

Size
Large codebase
~58k lines · 1262 code files · ~8 h to skim
Setup
One-command install
Installs like a normal app. Reading the code is optional.
Runs on
Node.js
No API keys detected
JavaScript 100%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    package.json
    Dependencies and the commands it exposes
  3. 3
    src/abstract-crud-object.js
    Inside src/ — the main logic begins here
  4. 4
    examples/BasicExample.js
    A worked example — copy this to get going
What's in each folder
src/Core code — the actual logic1121 files
examples/Examples you can copy142 files
__tests__/Tests — proof it works11 files
.github/CI / automation (GitHub Actions)4 files
.vscode/Editor / agent settings1 files
READMEHas testsDocumentedCI checksExamples includedOther licenseUpdated this month
Quick Actions
Details
Creator
facebook
Language
JavaScript
Category
marketing
Published
8/29/2017

Are you the creator of this tool? Claim your listing → and earn 85% of every sale.

Ready-to-run pack · one-time $29

Rank Tracker

A weekly email of where you actually rank on Google.

Includes the tested workflow and a written setup playbook. Needs: SerpAPI key (free tier).

See what you get