campaigningbureau / facebook-repository
Acts as a repository that is able to poll the feed of facebook pages. Also comes with an optional caching decorator
Installs: 226
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 1
pkg:composer/campaigningbureau/facebook-repository
Requires
- php: ^7.0.0
 - illuminate/cache: 5.5.*
 - illuminate/support: 5.5.*
 - sammyk/laravel-facebook-sdk: ^3.5
 
This package is auto-updated.
Last update: 2025-10-26 10:00:50 UTC
README
This package is able to load the latest posts from a facebook feed and return them. An optional caching decorator is available.
Usage
Step 1: Install Through Composer
composer require campaigningbureau/facebook-repository
Step 2: Register the Service Provider
Add the service provider to config/app.php.
/* * Package Service Providers... */ \CampaigningBureau\FacebookRepository\FacebookRepositoryServiceProvider::class,
Step 3: Publish and edit the config file
$ php artisan vendor:publish --provider="CampaigningBureau\FacebookRepository\FacebookRepositoryServiceProvider"
Configuration
The facebook_app_id and facebook_app_secret fields need to be set with the API Key and Secret of your Facebook app.
By default they are populated with the .env variables FACEBOOK_APP_ID and FACEBOOK_APP_SECRET.
The caching configuration is required for the optional caching decorator.