Facebook + UserBundle authentication with symfony2
Chain providers is indeed the solution to this problem. Here is what you security.yml config shoud look like:
providers: my_project.chain_provider: chain: providers: [fos_userbundle, my_project.facebook_provider] fos_userbundle: id: fos_user.user_provider.username_email my_project.facebook_provider: id: my_project.user_provider.facebook
And, of course, you need to define your own facebook provider as stated here