core23 / facebook-bundle
This bundle provides a block service for using the Facebook API inside the sonata-project.
Fund package maintenance!
core23
Opencollective
Ko-Fi
Other
Installs: 96
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Type:symfony-bundle
Requires
- php: ^7.3
- core23/twig-extensions: ^1.0
- facebook/graph-sdk: ^5.0
- psr/log: ^1.0
- sonata-project/block-bundle: ^4.0
- sonata-project/form-extensions: ^1.1
- symfony/config: ^4.4 || ^5.0.4
- symfony/dependency-injection: ^4.4 || ^5.0.4
- symfony/event-dispatcher-contracts: ^1.1 || ^2.0
- symfony/expression-language: ^4.4 || ^5.0.4
- symfony/form: ^4.4 || ^5.0.4
- symfony/framework-bundle: ^4.4 || ^5.0.4
- symfony/http-foundation: ^4.4 || ^5.0.4
- symfony/http-kernel: ^4.4 || ^5.0.4
- symfony/routing: ^4.4 || ^5.0.4
- symfony/twig-bundle: ^4.4 || ^5.0.4
- twig/intl-extra: ^2.12 || ^3.0
- twig/twig: ^2.4 || ^3.0
Requires (Dev)
- bamarni/composer-bin-plugin: ^1.3
- ergebnis/composer-normalize: ^2.0.1
- symfony/browser-kit: ^4.4 || ^5.0.4
- symfony/options-resolver: ^4.4 || ^5.0.4
README
This bundle adds some basic auth mechanisum for using the Facebook API inside symfony.
Installation
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
composer require core23/facebook-bundle
Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles in config/bundles.php
file of your project:
// config/bundles.php return [ // ... Core23\FacebookBundle\Core23FacebookBundle::class => ['all' => true], ];
Configure the Bundle
Create a configuration file called core23_facebook.yaml
:
# config/packages/core23_facebook.yaml core23_facebook: api: field: 'app_id' class: 'app_secret' permissions: ['public_profile', 'user_likes']
License
This bundle is under the MIT license.