campaigningbureau/facebook-repository
Composer 安装命令:
composer require campaigningbureau/facebook-repository
包简介
Acts as a repository that is able to poll the feed of facebook pages. Also comes with an optional caching decorator
README 文档
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.
统计信息
- 总下载量: 226
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-09-25