marketing

Boost Ad Campaigns with facebook-nodejs-business-sdk

Integrate Meta Marketing APIs using this Node.js SDK, so founders can automate ad creation, tracking, and reporting with minimal code.

From the repo · “Node.js SDK for Meta Marketing APIs”

intermediate⏱ 30 minutes💵 Free (self-hosted)
623 stars+1★ this week254 forksJavaScriptGuide quality 8/10 · reviewed Oct 20Updated 9/21/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 Boost Ad Campaigns with facebook-nodejs-business-sdk works
Codeflow
Free to inspect

Boost Ad Campaigns with facebook-nodejs-business-sdk is a large JavaScript project (~60k lines across 1291 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
~60k lines · 1291 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 logic1150 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 1 mo ago
Quick Actions
Details
Creator
facebook
Language
JavaScript
Category
marketing
Published
8/29/2017

Are you the creator of this tool? and earn 85% of every sale.

Show it off in your README:

Featured on WorkflowStacks
[![Featured on WorkflowStacks](https://workflowstacks.com/api/badge/facebook-nodejs-business-sdk.svg)](https://workflowstacks.com/skills/facebook-nodejs-business-sdk?utm_source=github&utm_medium=badge)
🔥 Hot this week, in your inbox
Skills like this, every Monday.

The five fastest-growing open-source AI skills, ranked by GitHub star growth. One email a week, unsubscribe anytime.

Do this with a working workflow

Pages we wrote and tested that put a skill like this to work — importable n8n templates, outcome guides and Claude Desktop configs.

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