Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Facebook Bundle

Facebook Bundle Laravel Package

armetiz/facebook-bundle

View on GitHub
Deep Wiki
Context7

A simple bundle to expose Facebook SDK

Frequently asked questions about Facebook Bundle
Can I use this bundle directly in Laravel, or is it only for Symfony?
This bundle is designed for Symfony and won’t work natively in Laravel. You’d need to create a custom Laravel service provider to bridge the Symfony dependency injection system with Laravel’s container. This adds complexity and isn’t recommended unless you’re already using Symfony.
What Laravel alternatives exist for Facebook API integration?
For Laravel, consider **spatie/laravel-facebook-api**, which is actively maintained, supports modern PHP, and integrates seamlessly with Laravel’s service container. It also uses Facebook’s official SDK (v14+) and handles OAuth flows better.
Does this bundle support Facebook Graph API v18+ or the latest SDK?
No, this bundle uses the outdated **facebook/php-sdk v3.1.1** (last updated in 2016), which doesn’t support Graph API v18+ or Facebook’s official SDK v14+. You’d need to manually upgrade the SDK or use a modern alternative.
How do I configure multiple Facebook apps (e.g., dev/staging/prod) in Laravel?
This bundle supports multi-app setups via YAML config, but Laravel uses `.env` or `config/services.php`. You’d need to manually replicate the logic in Laravel’s config or build a custom provider. Spatie’s package handles this natively with `.env` variables.
Is this bundle secure for production? What about token management?
This bundle lacks built-in security features like OAuth flow management, token validation, or support for short-lived/long-lived tokens. It also hardcodes secrets in `config.yml` (no `.env` support), posing a risk. For production, use a package with proper OAuth handling.
Will this bundle work with Laravel’s HTTP client (Guzzle) or PSR-15 middleware?
No, the bundle doesn’t integrate with Laravel’s HTTP stack or PSR-15 middleware. The underlying SDK (v3.x) also lacks modern features like batching or real-time subscriptions, which Laravel’s ecosystem expects.
How do I migrate from this bundle to a modern Laravel-compatible package?
Start by replacing the bundle with **facebook/graph-sdk** directly or **spatie/laravel-facebook-api**. Update your code to use the new SDK’s methods (e.g., `Graph` class instead of `FB::get()`). Test thoroughly, as breaking changes exist between SDK v3 and v14+.
Does this bundle support PHP 8.x or Laravel 9/10?
No, this bundle requires **PHP ≥5.3.3** and **Symfony ≥2.1**, which are incompatible with Laravel’s modern stack (PHP 8.x, Laravel 9/10). You’d need to fork and update dependencies, but the project is abandoned with no guarantees.
Can I use this bundle for Facebook Ads API or advanced features like batch requests?
No, this bundle only exposes basic SDK methods (e.g., `api()`). Advanced features like Ads API, batch requests, or real-time subscriptions require manual implementation using the official SDK or a dedicated package.
What’s the maintenance status of this bundle? Should I use it in 2024?
This bundle is **abandoned** (0 stars, no recent commits) and relies on a deprecated SDK. For new projects, avoid it. Use **spatie/laravel-facebook-api** or the official SDK for active maintenance, security updates, and Laravel compatibility.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver