Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7672567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:18:58+00:00 2026-05-31T16:18:58+00:00

I installed FOSUserBundle and FOSFacebookBundle using this method : How to make a separate

  • 0

I installed FOSUserBundle and FOSFacebookBundle using this method : How to make a separate url for signin via Facebook using FOSFacebookBundle in Symfony2. Actually I didn’t really understand the whole security thing process, but it is working fine now.

When someone is using facebook signup, I would like the possibility to choose an username before being registred (instead of the facebook id as username)… what I do is that I send a POST parameter to the facebook login route but I can’t find the controller where the registration is being processed.

What would be the best practise ? Where should I retrieve the username (the POST param) and set it ?

Here is my configuration in security.yml :

firewalls:

public:
  pattern: ^/

  fos_facebook:
    app_url: "http://www.appName.com"
    server_url: "http://local.appName.com/app_dev.php/"
    login_path: /login
    check_path: /login_check/facebook
    provider: appName.facebook.provider

  form_login:
    login_path: /login
    check_path: /login_check/form
    provider: fos_userbundle
    csrf_provider: form.csrf_provider  

and here is the routing I use to signup with facebook :

_security_check_facebook:
    pattern: /login_check/facebook
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T16:18:59+00:00Added an answer on May 31, 2026 at 4:18 pm

    There is no controller processing authentication, ever authentication method add a listener that will trigger on check_path, and do the trick.

    Authentication process shouldn’t be responsible to add custom user data. If you followed FOSFacebookBundle documentation you should have a custom user provider that store the user on database, this may confuse a bit but this is not a registration step, is an authentication step. Adding a username is much similar to a profile editing.

    To help you i should see your implementation (how do you send post parameter ? ) but you could try something like this:

    1. send post parameter to a custom controller (implemented by you)
    2. temporary store username (maybe user session data ?)
    3. trigger authentication process (this depend on your implementation but essentially we are talking about authenticate on facebook and then post to login_check path)
    4. add username at the authenticated user

    This could work, but I never did something like this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I installed virtualmin and phpmyadmin separately using the apt-get command. phpMyAdmin didn't work because
I installed both the Delphi 2009 trial and actual release via the web installer
Installed the IronPython tools for VS 2010 but it didn't associate the *.py files
Installed Visual Studio Web Developer 2010 Express from the ISO available from this page:
I installed iplots and rjava packages. When I do this library(iplots), I get the
Installed SlikSvn on Window 2008 server Created Repository at c:\dia\svn\repos running this windows service
I installed and activated the execPHP plug in and used this <?php echo "hello";
Installed Git and created heroku account for use with a facebook app unable to
I installed win32api and can import and make calls to it from the command
I installed NERDTree via Pathogen on Mac OSX 10.6.8. When I vim a dir,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.