A fully unit-tested Laravel and Lumen package for integrating Facebook SDK v5, enabling advanced Facebook API interactions.
Laravel Facebook SDK is a Laravel and Lumen package that integrates the official Facebook PHP SDK v5. It provides a fluent, Laravel-friendly interface for handling Facebook authentication, making Graph API requests, and synchronizing Facebook data with Eloquent models. It solves the need for advanced Facebook integrations beyond basic OAuth, such as handling signed requests, batch operations, and pagination.
Laravel or Lumen developers building applications that require advanced Facebook API interactions, such as social logins, data synchronization, photo/video uploads, or canvas/page tab apps.
Developers choose this package because it offers a fully tested, Laravel-idiomatic wrapper for the Facebook SDK, supporting features not available in simpler OAuth clients like Socialite, such as batch requests, multiple login methods, and seamless Eloquent model synchronization.
Fully unit tested Facebook SDK v5 integration for Laravel & Lumen
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Fully wraps the official Facebook PHP SDK v5, providing all its advanced features like batch requests and pagination within Laravel's fluent interface, as demonstrated in the making requests examples.
Supports four authentication flows—redirect, JavaScript SDK, app canvas, and page tabs—catering to diverse Facebook app types, with detailed helpers for each method in the README.
Includes SyncableGraphNodeTrait for seamless mapping and syncing of Graph API data to Eloquent models, offering field aliases and date formatting customization.
Provides built-in methods for re-requesting declined permissions and re-authentication flows, going beyond basic OAuth to handle complex user consent scenarios.
Requires publishing config files and managing environment variables, with the README warning that skipping this can lead to breaking changes from Graph API version updates.
Login from redirect relies on Laravel sessions, which are not available in Lumen 5.2+, forcing developers to use alternative authentication methods or workarounds.
For canvas and page tab apps, CSRF protection must be disabled on specific routes, introducing potential vulnerabilities if not carefully managed, as noted in the troubleshooting section.
Built on Facebook PHP SDK v5, which may lag behind newer Facebook API features or security updates, risking obsolescence without active maintenance.