Skip to content

Instantly share code, notes, and snippets.

@BernardoSilva
Last active August 29, 2015 14:08
Show Gist options
  • Save BernardoSilva/4368dc32bd3bcda83344 to your computer and use it in GitHub Desktop.
Save BernardoSilva/4368dc32bd3bcda83344 to your computer and use it in GitHub Desktop.
Facebook SKD 4.0 example on Symfony 2.5
###PHP requirements to be able to use php SDK
- php-mbstring
In Centos you can install this php-module like this:
```bash
$ yum install php-mbstring
```
###Symfony changes required:
In your config.yml need to change the session handler
```yaml
framework:
session:
# handler_id set to null will use default session handler from php.ini
handler_id: session.handler.native_file
save_path: "%kernel.root_dir%/sessions"
```
Don't forget that to use facebook sdk you need to set: `session_start();` before all your scripts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment