performance-marketing

facebook-business-sdk-codegen for SDKs

Get Facebook Business SDK code generation for PHP. For founders and developers.

From the repo · “Codegen project for our business SDKs”

intermediate⏱ 30 minutes💵 Free
112 stars66 forksPHPGuide quality 8/10 · reviewed Jun 29Updated 11/19/2026100% free · open source
What it is

Use this tool to generate code for Facebook's business SDKs, allowing you to integrate Facebook's APIs into your website or app.

Real use case example

"A founder of a mid-sized e-commerce business can use this tool to generate code to automatically add their customers to specific Facebook audiences, then create targeted ads to increase sales. To do this, they would first create a new project in this tool, then select the Facebook Business SDK and specify the code output format. Next, they would use the generated code in their website's backend to connect to their Facebook Ads account and create custom audiences. Finally, they would use Facebook Ads Manager to create and launch ad campaigns to their newly created audience."

When to use it
  • •When building a PHP application that needs to interact with Facebook's business APIs
  • •When creating a plugin or module that requires Facebook Business SDK functionality
  • •When migrating an existing application to use the latest Facebook Business SDK version
Ready-to-paste prompt
php scripts/generate.php --config codegen.json --output /path/to/generated/sdk
Heads up: Requires a compatible PHP version (7.2 or later) and the `composer` package manager to be installed and configured
Saves to your device
Use with Claude
New

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

🛠️ Technical setup

Expect 20–40 minutes in a terminal — or let your AI agent drive it.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/facebook-business-sdk-codegen && curl -fsSL https://workflowstacks.com/api/skills/facebook-business-sdk-codegen/claude-skill -o ~/.claude/skills/facebook-business-sdk-codegen/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-business-sdk-codegen for SDKs works
Codeflow
Free to inspect

Facebook-business-sdk-codegen for SDKs is a large PHP project (~17k lines across 227 code files, plus 94 test files). It is a full software project: use it through its install path rather than reading it end to end. Last commit this month, Other license, has a test suite.

Size
Large codebase
~17k lines · 227 code files · ~2 h to skim
Setup
Developer setup
A real software project. Use it via its install path; don't expect to read it all.
Runs on
Node.js
No API keys detected
PHP 37%Java 16%JavaScript 14%Python 12%Mustache 12%
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
What's in each folder
templates/Templates428 files
api_specs/Folder1189 files
postman/Folder3 files
flow-typed/Folder1 files
.github/CI / automation (GitHub Actions)4 files
.vscode/Editor / agent settings1 files
READMEHas testsDocumentedNo CIOther licenseUpdated this month
Quick Actions
Details
Creator
facebook
Language
PHP
Category
performance-marketing
Published
1/26/2019

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