I'm trying to authenticate my users via facebook or userbundle on symfony2
Here's what I did so far (and it works, although not as I want):
firewalls:
main:
pattern: .*
fos_facebook:
app_url: "http://apps.facebook.com/appName/"
server_url: "http://localhost/facebookApp/"
login_path: /fblogin
check_path: /fblogin_check
default_target_path: /
provider: my_fos_facebook_provider
form_login:
check_path: /login_check
anonymous: true
logout:
handlers: ["fos_facebook.logout_handler"]
The problem with that config is that when the user is not logged in, he's redirected to /login (form_login), while I'd like him to be redirected to Facebook authentication by default
I already tried simply removing the form_login, but then if I access /login (which is how I want users to login outside facebook), it doesn't know the /login_check route to submit the login form
Maybe chain_provider would be a solution? I didn't get it working either