fourlabs / facebook-pages-bundle
Facebook Pages Management for Symfony
Installs: 1 301
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: ^7.1
- facebook/graph-sdk: 5.7.0
- guzzlehttp/guzzle: ^6.3
- guzzlehttp/psr7: ^1.4
- php-http/curl-client: ^1.7
- symfony/config: ~2.8|~3.0|~3.1
- symfony/dependency-injection: ~2.8|~3.0|~3.1
- symfony/event-dispatcher: ~2.8|~3.0|~3.1
- symfony/form: ~2.8|~3.0|~3.1
- symfony/http-foundation: ~2.8|~3.0|~3.1
- symfony/http-kernel: ~2.8|~3.0|~3.1
- symfony/options-resolver: ~2.8|~3.0|~3.1
- symfony/routing: ~2.8|~3.0|~3.1
- symfony/yaml: ~2.8|~3.0|~3.1
Requires (Dev)
- doctrine/orm: ^2.6
- jakeasmith/http_build_url: ^1.0
- php-http/mock-client: ^1.1
- phpunit/phpunit: ^6.5
This package is auto-updated.
Last update: 2024-11-22 07:35:39 UTC
README
Manage your Facebook Pages in Symfony
Installation
Composer installation
$ composer require fourlabs/facebook-pages-bundle
Add to app/config/AppKernel.php
<?php
//...
$bundles = [
// ...
new FL\FacebookPagesBundle\FLFacebookPagesBundle(),
];
Configuration
# app/config/config.yml fl_facebook_pages: app_id: "%facebook_app_id%" app_secret: "%facebook_app_secret%" page_manager_class: AppBundle\Entity\FacebookPageManager page_class: AppBundle\Entity\FacebookPage page_review_class: AppBundle\Entity\FacebookPageReview # the following have sensible defaults and can remain unchanged page_manager_storage: fl_facebook_pages.storage.doctrine.facebook_user_storage page_storage: fl_facebook_pages.storage.doctrine.page_storage page_review_storage: fl_facebook_pages.storage.doctrine.page_review_storage guzzle_service: guzzle.client.facebook_pages
# app/config/routing.yml fl_facebook_pages: resource: "@FLFacebookPagesBundle/Resources/config/routing.yml"
Facebook App Settings
Since March 2018 Facebook enforces strict callback URL matching.
This means that you will have to add the following URL to Valid OAuth Redirect URIs in your Facebook app settings:
https://yourdomain.com/fl_facebook_pages/save-auth
.
Tests
To run the test suite, you need composer.
$ composer install $ phpunit
License
FacebookPagesBundle is licensed under the MIT license.