kl3ryk / symfony-facebook-authentication-bundle
This package provides Symfony2 bundle for Facebok authentication.
1.1.1
2013-08-24 14:56 UTC
Requires
- php: >=5.4
- ext-curl: *
- facebook/php-sdk: ~3.2,>=3.2.2
- kl3ryk/symfony-facebook-bundle: ~1.5
- symfony/config: ~2.2
- symfony/dependency-injection: ~2.2
- symfony/http-foundation: ~2.2
- symfony/http-kernel: ~2.2
- symfony/security: ~2.2
- symfony/security-bundle: ~2.2
Requires (Dev)
- absolvent/phpunit-symfony: ~2.4,>=2.4.3
- fabpot/php-cs-fixer: ~0.2
- laelaps/phpunit-test-aware: ~1.0
- symfony/browser-kit: ~2.3
- symfony/framework-bundle: ~2.3
This package is not auto-updated.
Last update: 2024-12-16 16:48:24 UTC
README
This bundle provides ready to use Facebook Authentication solution.
Usage
Basic configuration
# config.yml facebook: application_id: "your_application_id" secret: "your_application_secret"
# security.yml firewalls: your_firewall: facebook: true pattern: /
Requesting User Permissions
# config.yml facebook: application_id: "your_application_id" secret: "your_application_secret" permissions: - example_permission_a - example_permission_b - example_permission_c
# security.yml firewalls: your_firewall: facebook: true pattern: /
Using Custom User Provider
# config.yml facebook: application_id: "your_application_id" secret: "your_application_secret"
# security.yml providers: your_user_provider: id: your.user.provider.service.id firewalls: your_firewall: facebook: true pattern: / provider: your_user_provider
Using Custom Authentication handlers
# config.yml facebook: application_id: "your_application_id" secret: "your_application_secret"
# security.yml firewalls: your_firewall: facebook: failure_handler: your.authentication.failure_handler success_handler: your.authentication.success_handler pattern: /
Using Several Facebook Applications
# config.yml facebook: application_id: "your_default_application_id" secret: "your_default_application_secret"
# security.yml firewalls: your_foo_firewall: facebook: true pattern: /foo your_bar_firewall: facebook: application_id: "your_other_application_id" secret: "your_other_application_id" pattern: /bar your_baz_firewall: # default APP configuration, custom permissions facebook: permissions: - example_permission_a - example_permission_b - example_permission_c pattern: /baz
Semantic Versioning
This repository follows Semantic Versioning 2.0.0.