marketing

facebook-ruby-business-sdk: Meta API access

Get Meta Marketing API access with this SDK, for founders using Ruby.
intermediate1-2 hours💵 Free (self-hosted)
214 stars168 forksRubyGuide quality 9/10Updated 8/27/2026100% free · open source
What it is

Get the Meta Marketing API via Ruby, so you can automate tasks and fetch insights.

Real use case example

"A founder wants to monitor Amazon product performance and automate tasks. They connect their Meta Business account to the SDK, write some simple Ruby code (like `client.product.get_product_info('ASIN_123')`), and schedule a daily Amazon product report to be created in Notion."

Best insideClaude DesktopCursor
When to use it
  • When building a Ruby application that needs to automate Facebook ad management
  • When integrating Facebook marketing data into a Ruby-based analytics pipeline
  • When creating a custom Facebook ads dashboard using Ruby on Rails
Ready-to-paste prompt
client.get_ad_account(ad_account_id: '1234567890', fields: ['id', 'name', 'balance'])
Heads up: You need to have a Facebook Developer account and obtain an access token with the correct permissions to use this SDK, and ensure you're using a compatible Ruby version (2.5 or higher)
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-ruby-business-sdk && curl -fsSL https://workflowstacks.com/api/skills/facebook-ruby-business-sdk/claude-skill -o ~/.claude/skills/facebook-ruby-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-ruby-business-sdk: Meta API access works
Codeflow
Free to inspect

Facebook-ruby-business-sdk: Meta API access is a large Ruby project (~48k lines across 1280 code files, plus 24 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
~48k lines · 1280 code files · ~7 h to skim
Setup
One-command install
Installs like a normal app. Reading the code is optional.
Runs on
Ruby
No API keys detected
Ruby 100%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    lib/facebook_ads.rb
    Inside lib/ — the main logic begins here
  3. 3
    examples/AdAccountAdCreativesEdge.rb
    A worked example — copy this to get going
What's in each folder
lib/Core code — the actual logic1139 files
examples/Examples you can copy148 files
spec/Tests — proof it works18 files
.github/CI / automation (GitHub Actions)4 files
READMEHas testsDocumentedCI checksExamples includedOther licenseUpdated this month
Quick Actions
Details
Creator
facebook
Language
Ruby
Category
marketing
Published
2/25/2015

Are you the creator of this tool? Claim your listing → and earn 85% of every sale.

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