marketing

facebook-python-business-sdk: Simplify Marketing

Meta Marketing API access for Python developers, backed by 1.6k+ GitHub stars, ideal for startup founders.
intermediate⏱ 30 minutes💵 Free + requires Meta Marketing APIs access.
1,610 stars+4★ this week671 forksPythonGuide quality 9/10 · reviewed Jun 29Updated 9/21/2026100% free · open source
What it is

Use the Facebook Python Business SDK to fetch marketing data from Meta APIs.

Real use case example

"A solo developer, Alex, wants to boost sales by targeting customers with relevant Facebook ads. Alex sets up this SDK, connects to their e-commerce database, and fetches customer purchase history in just a few minutes. They then use the data to create tailored ads on Facebook, increasing engagement and driving more sales."

Best insideClaude DesktopCursorCodex CLI
When to use it
  • •When you need to automate Facebook ad management for your startup
  • •When you want to integrate Facebook marketing data into your custom analytics dashboard
  • •When you need to build a custom Facebook ads reporting tool for your team
Ready-to-paste prompt
Get ad account info: `graph.get_object(id='act_<AD_ACCOUNT_ID>')`
Heads up: You need to obtain a Facebook App ID, App Secret, and access token to use the SDK, and ensure your Facebook account has the necessary permissions to access the Marketing API
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-python-business-sdk && curl -fsSL https://workflowstacks.com/api/skills/facebook-python-business-sdk/claude-skill -o ~/.claude/skills/facebook-python-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-python-business-sdk: Simplify Marketing works
Codeflow
Free to inspect

Facebook-python-business-sdk: Simplify Marketing is a very large Python project (~129k lines across 1329 code files, plus 28 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
Very large codebase
~129k lines · 1329 code files · days to read — use, don't read
Setup
One-command install
Installs like a normal app. Reading the code is optional.
Runs on
Python
No API keys detected
Python 100%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    requirements.txt
    Dependencies and the commands it exposes
  3. 3
    examples/.gitignore
    A worked example — copy this to get going
What's in each folder
examples/Examples you can copy160 files
facebook_business/utils/Helper scripts4 files
facebook_business/test/Tests — proof it works18 files
.github/CI / automation (GitHub Actions)3 files
READMEHas testsDocumentedCI checksExamples includedOther licenseUpdated this month
Quick Actions
Details
Creator
facebook
Language
Python
Category
marketing
Published
8/29/2014

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-python-business-sdk.svg)](https://workflowstacks.com/skills/facebook-python-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