campaigningbureau/facebook-repository

Acts as a repository that is able to poll the feed of facebook pages. Also comes with an optional caching decorator

v1.0.1 2018-09-25 06:01 UTC

This package is auto-updated.

Last update: 2024-11-26 07:48:01 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.