Download the PHP package meta-engine/laravel-meta without Composer
On this page you can find all versions of the php package meta-engine/laravel-meta. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-meta
Laravel Meta Integration Package
A modular, highly-independent Meta (Facebook & Instagram) API SDK and integration package for Laravel.
This package provides a unified interface for interacting with the Meta Graph API, supporting everything from simple automated posts to complex Lead Ads webhooks, without forcing unnecessary database tables into your application.
๐ Key Features
- Facebook Page Publishing: Publish Text, Images, Videos, Carousels, Stories, and Reels (including 3-step chunked upload).
- Instagram Publishing: Publish Images, Videos, Carousels, Stories, and Reels (using async container polling). (Note: Meta API requires media for IG, no text-only posts).
- Lead Ads & Webhooks: Integrated webhook support for real-time events.
- Visual Sandbox: Built-in UI to test tokens, fetch leads, and test posts directly.
๐ 1. Installation
Install the package globally via Composer:
(For Laravel 10.x, 11.x, and 12.x)
โ๏ธ 2. Configuration
Publish the package configuration file to your application's config/ directory:
Next, open your application's .env file and add the required Meta credentials:
๐ 3. Getting Your Token & Permissions
If you do not have a META_SYSTEM_USER_TOKEN yet, you must generate one from the Meta Business Settings.
The token must be a System User Access Token (never a temporary user token) to ensure your server can make automated background requests without expiring.
๐ Click here to read the full Step-by-Step Token & Permissions Guide
๐งช 4. Testing Your Integration
This package ships with built-in tools to instantly verify if your connection and token are valid.
Option A: The Visual Sandbox UI (Recommended)
If you added META_SANDBOX_ENABLED=true to your .env, you can test your integration directly from your browser!
- Start your local server (
php artisan serve). - Go to
http://localhost:8000/meta/sandbox. - You will see a beautiful dashboard where you can:
- Validate your token and instantly see what permissions it holds.
- Fetch a test Lead ID directly from Meta.
- Publish a test post to a Facebook Page.
Option B: The Artisan CLI Test
If you prefer the command line, run the built-in diagnostic tool:
You will receive a clear pass/fail report confirming if your App ID, Secret, and Token are correctly communicating with the Graph API.
โก 5. 1-Click CRM Integration
Want to build a Meta Dashboard directly into your own application? We've automated the entire backend for you!
By simply running:
The package will instantly scaffold the Database Migrations, Models, and a full API Controller directly into your application.
What about the UI? Because every app uses a different frontend stack, we leave the UI to you! See our CRM Integration Guide for a simple checklist of the views you need to build to hook into the generated backend.
๐๏ธ 6. Architecture & Usage Modes
This package natively supports two usage modes depending on your application's architecture:
Direct API Mode (No Database Required)
Your Application directly calls Meta APIs through our services.
- Perfect for simple integrations (e.g., just fetching a single lead).
- No migrations required (
META_DATABASE_ENABLED=false).
Persistent Integration Mode (Advanced)
Provides a robust synchronization layer using local database tables.
- Webhook storage and processing.
- Event dispatching (e.g.,
MetaLeadReceived). - Automated Queue scheduling and retries for failed posts.
- Requires running package migrations (
META_DATABASE_ENABLED=true).
๐ Advanced Documentation
Detailed documentation for specific modules can be found in the docs/ folder:
- Installation Guide
- Publishing Guide
- Fetching & Filtering Media
- Token and Authentication Guide
- Account Access & Troubleshooting
- Leads Retrieval
- Ads Management
- CRM Integration & Scaffolding
-
Comprehensive API Testing
Developed by ManishNlet77. Open source under the MIT License.
All versions of laravel-meta with dependencies
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/contracts Version ^10.0|^11.0|^12.0
illuminate/console Version ^10.0|^11.0|^12.0