Download the PHP package highsolutions/laravel-poster without Composer
On this page you can find all versions of the php package highsolutions/laravel-poster. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download highsolutions/laravel-poster
More information about highsolutions/laravel-poster
Files in highsolutions/laravel-poster
Package laravel-poster
Short Description A Laravel package for easy Slack notifications about posts published on subscribed Facebook's fanpages.
License MIT
Informations about the package laravel-poster
Larevel Poster
Easy creation of Slack notifications about posts published on subscribed Facebook's fanpages.
Installation
Add the following line to the require
section of your Laravel webapp's composer.json
file:
Run composer update
to install the package.
This package uses Laravel 5.5 Package Auto-Discovery.
For previous versions of Laravel, you need to update config/app.php
by adding an entry for the service provider:
Next, publish all package resources:
This will add to your project:
- migration - database table for storing posts and tokens
- configuration - package configurations
- views - configurable views for token refreshing
Remember to launch migration:
Next step is to add cron task via Scheduler (app\Console\Kernel.php
):
Remember to assign cron tasks to artisan.
Configuration
Setting name | Description | Default value |
---|---|---|
socials.facebook.credentials.app_id | Facebook's app identifier | '' |
socials.facebook.credentials.app_secret | Facebook's app secret | '' |
socials.facebook.api_version | Graph API version | 'v5.0' |
socials.facebook.list | List of Facebook pages | [] |
slack.default_channel | Default channel for notifications | '' |
slack.webhook_url | Slack's webhook url | '' |
Facebook lists are defined like:
Facebook app
You need to provide Facebook's app id and secret. Moreover, you have to define redirect url for your application.
E.g. http://yourdomain.com/laravel-poster/fb_get/obtained
Facebook Access Token
To fetch Facebook page's posts you need Facebook Access Token. Any Facebook user can use his account to store Access Token. It's valid for 2 months.
When Access Token is going to expire, any user has to click on provided link and connect with Facebook via link on website. The same operation is needed for first time.
For now there is no way to make it fully automatic. Thanks to Facebook.
Changelog
1.3.0
- Support Laravel 7.x and 8.x
1.2.2
- Set up Graph API version
1.2.1
- Common style of hyperlinks
1.2.0
- Styling facebook button according to brandbook
1.1.0
- Support Laravel 6.0
1.0.7
- Debug information about wrong JSON was fired when JSON was valid
1.0.6
- Handle problem when post is share of another post
1.0.5
- Support Package Auto-Discovery
1.0.4
- Fix timezone problems
1.0.3
- Little fixes on readme
- Check if SocialToken->notified_at is null
1.0.0
- Create package
- Slack support
- Facebook posts support
Roadmap
- Not only Facebook fanpages support.
- Not only Slack notifications support.
- Trigger events
- Comments
- Unit tests!
Credits
This package is developed by HighSolutions, software house from Poland in love in Laravel.
All versions of laravel-poster with dependencies
illuminate/support Version 5.*|^6.0|^7.0|^8.0
facebook/graph-sdk Version 5.5.*