Last active
August 29, 2015 14:08
-
-
Save BernardoSilva/4368dc32bd3bcda83344 to your computer and use it in GitHub Desktop.
Facebook SKD 4.0 example on Symfony 2.5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###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