facebook-ads
Manage Facebook and Instagram ad campaigns, audiences, and performance insights directly via the Membrane CLI.
Introduction
The Facebook Ads skill provides an integrated interface for AI agents to interact with the Facebook Marketing API. It simplifies the complex task of managing advertising infrastructure by leveraging the Membrane platform, which abstracts away authentication complexity and credential rotation. This allows users to perform CRUD operations on campaigns, ad sets, ads, and creatives, or extract granular performance data without manually handling API tokens or session persistence. The skill is designed for performance marketers, growth hackers, and developers who need to programmatically control their ad presence across Facebook and Instagram platforms.
-
Full lifecycle management of Facebook Ad objects including Campaigns, Ad Sets, Ads, Ad Creatives, and Custom Audiences.
-
Automated authentication lifecycle management via Membrane CLI, handling token refreshes and secure connection management.
-
Intent-based discovery of platform actions using natural language queries to identify the correct API operations.
-
Support for dynamic action building, allowing the agent to create new API wrappers on the fly if existing actions do not satisfy specific requirements.
-
High-fidelity reporting and insights retrieval for ad performance analysis and budget optimization.
-
Robust error handling and pagination management for large-scale data extraction from the Facebook Marketing API.
-
Always prioritize using pre-built Membrane actions before attempting to create custom API calls to leverage built-in pagination and error handling.
-
Use the membrane login command for headless authentication in automated environments by following the provided authorization URL flow.
-
Utilize the --json flag for all CLI interactions to ensure consistent, machine-readable output for parsing within your agent harness.
-
Monitor action states during creation (BUILDING to READY) to ensure that custom-generated actions are initialized correctly before execution.
-
Always perform actions within the context of a valid connectionId to maintain scope and security.
-
Adhere to Meta's marketing API limits and documentation standards for campaign creation and data privacy.
Repository Stats
- Stars
- 4,450
- Forks
- 1,213
- Open Issues
- 7
- Language
- Python
- Default Branch
- main
- Sync Status
- Idle
- Last Synced
- Apr 30, 2026, 08:04 AM