Streamline your Meta marketing efforts with this PHP SDK. For founders using PHP.
intermediate⏱ 1-2 hours💵 Free (self-hosted)
913 stars530 forksPHPQuality 8/10Updated 7/13/2026100% free · open source
What it is
Uses Facebook's Marketing API to manage your marketing campaigns via a PHP interface.
What you can make with it
Automations like: when a Facebook lead becomes a customer, update your Shopify orders.
How it helps
By allowing seamless integration with Meta Marketing API, this skill streamlines your marketing workflows, saving you time and effort.
Real use case example
"A founder, Emma, uses this skill to update her Shopify order management system whenever a Facebook ad lead becomes a customer, allowing her to better track sales."
If you're new
When starting out with AI-powered marketing automation, beginners can pick this up to understand the basics.
If you're senior
Senior developers would choose this for integrating Meta Marketing capabilities into their larger automation projects.
Common confusion cleared up
Some users may confuse this skill with a standalone marketing tool, but in fact, it's designed to integrate Facebook's Marketing API with existing automation systems.
Best inside these AI tools
Claude DesktopClaude Code
Pairs with
Stripe webhookNotion databaseClaude API
Why we list it on WorkflowStacks: This PHP SDK for the Meta Marketing API is included in our marketplace, giving developers access to an open-source, cost-effective marketing automation solution.
What it does
The Facebook PHP Business SDK allows you to manage and optimize your Meta marketing efforts, such as creating and managing ads, tracking ad performance, and handling billing, all within your PHP applications.
Install / run
composer require facebook/php-business-sdk
When to use it
•When you need to automate ad campaigns and ad management on Meta platforms
•When you want to integrate Meta marketing capabilities into your existing PHP application or website
•When you need to retrieve insights and analytics on your Meta ad performance programmatically
Quick start
1Create a new instance of the FacebookBusinessSDK class with your app ID, app secret, and access token, as shown in the example: $sdk = new FacebookBusinessSDK('APP_ID', 'APP_SECRET', 'ACCESS_TOKEN');
2Use the $sdk object to make API calls, such as creating a new ad campaign: $campaign = $sdk->createCampaign('CAMPAIGN_NAME', 'CAMPAIGN_OBJECTIVE');
3Handle errors and exceptions using try-catch blocks, as demonstrated in the README: try { $sdk->createAd(...); } catch (FacebookSDKException $e) { ... }
4Configure the SDK to use a specific Graph API version by setting the 'default_graph_version' property: FacebookBusinessSDK::setDefaultGraphVersion('v13.0');
5Use the provided examples in the README, such as the 'create-ad-example.php' file, as a starting point for your own implementation
Heads up: You need a Meta Developer account and a registered application to obtain an app ID, app secret, and access token, which are required to authenticate and authorize API requests made through the SDK
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.
9
top-level files
5
folders
5.1M
repo size
Other
license
Key files
README.md
File tree
.github/
bin/
examples/
src/
test/
.gitignore
CHANGELOG.md
CODE_OF_CONDUCT.md
composer.json
CONTRIBUTING.md
DEVELOPER_GUIDE.md
fb_ca_chain_bundle.crt
LICENSE
README.md
Quick Actions
Details
Creator
facebook
Language
PHP
Category
marketing
Published
6/16/2014
Are you the creator of this tool? Claim your listing → and earn 85% of every sale.