To use this bundle, you need the facebook php sdk:
For instance, add it as a submodule:
git submodule add git://github.com/facebook/php-sdk src/vendor/facebook-php-sdk
facebook.config: appId: YOUR_APP_ID secret: YOUR_API_SECRET #optional file: /path/to/sdk/facebook.php security.config: providers: facebook: id: facebook.auth firewalls: public: pattern: /.* facebook: true anonymous: true stateless: true security: true access_control: - { path: /.*, role: [ROLE_USER, IS_AUTHENTICATED_ANONYMOUSLY] }
Just add the following code in one of your templates:
{% facebook_connect_button %}
You're done!