In my symfony2 project I'm using the FOSFacebookBundle and it's working ok. If the fb user already exists on the DB the user is logged in, by another hand if the user is not registered yet, the user will be added to the DB, and the data retrieved from FB.
So far so good, but now I want to redirect the user to the profile edit page if the user was registered in this process, otherwise will be redirect to the homepage. How can I implement this? I just know if the user exists or not in the provider, should I register some information to the session in the provider and then create some listener to read the session and do the redirection?
Any hints are welcome :)