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,564 stars672 forksPythonQuality 9/10Updated 7/13/2026100% free · open source
What it is
Use the Facebook Python Business SDK to fetch marketing data from Meta APIs.
What you can make with it
Automations like sending personalized product ads on Facebook based on customer purchase history on your e-commerce site.
How it helps
This SDK provides a convenient way to access Facebook's marketing data, saving you time and effort typically spent on API integrations.
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."
If you're new
Beginners can pick this up when they need to access Facebook's marketing data for a project.
If you're senior
Senior engineers and professionals reach for this SDK when integrating Meta APIs with existing e-commerce or marketing workflows.
Common confusion cleared up
This SDK doesn't handle data analytics or visualization – you'll still need to integrate those tools separately.
Best inside these AI tools
Claude DesktopCursorCodex CLI
Pairs with
Amazon Web Services SDKStripe webhookNotion database
Why we list it on WorkflowStacks: This SDK is part of a collection of open-source tools to help you integrate marketing APIs without extra costs.
What it does
The Facebook Python Business SDK provides a Python interface to Meta's Marketing APIs, allowing developers to manage Facebook ads, ad accounts, and more programmatically.
Install / run
pip install facebook-sdk
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
Quick start
1Create a Facebook Developer account and register an app to obtain an App ID and App Secret
2Install the facebook-python-business-sdk using pip: `pip install facebook-sdk`
3Import the SDK in your Python script: `from facebook import GraphAPI`
4Use the GraphAPI class to authenticate and make API calls: `graph = GraphAPI(access_token='YOUR_ACCESS_TOKEN')`
5Use the graph object to make API calls, such as retrieving ad account info: `graph.get_object(id='act_<AD_ACCOUNT_ID>')`
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
What's inside — free to inspect
No purchase needed
Read the entire source before you build — unlike paid marketplaces that hide it behind a buy button.
13
top-level files
3
folders
14.3M
repo size
Other
license
Key files
.pyre_configuration
config.json.example
README.md
requirements-tests.txt
requirements.txt
File tree
.github/
examples/
facebook_business/
.gitignore
.pyre_configuration
CHANGELOG.md
CODE_OF_CONDUCT.md
config.json.example
CONTRIBUTING.md
LICENSE
MANIFEST.in
README.md
requirements-tests.txt
requirements.txt
setup.py
tox.ini
Quick Actions
Details
Creator
facebook
Language
Python
Category
marketing
Published
8/29/2014
Are you the creator of this tool? Claim your listing → and earn 85% of every sale.