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 8553543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:40:36+00:00 2026-06-11T14:40:36+00:00

I am using FOSUserBundle and FOSUserFacebookBundle to authenticate my users. The issue is that

  • 0

I am using FOSUserBundle and FOSUserFacebookBundle to authenticate my users. The issue is that when I visit my /login page. I have two text field with a username and password. When I input my username and password, I am getting the following error:

The Facebook user could not be retrieved from the session.

This is such a weird error because I am logging in the user via a form and not via facebook, but it’s as if I am logging in the user via facebook. So I played around with my source code and here’s my security.yml/firewall settings:

 firewalls:
            main:
                pattern: ^/.*
                form_login:
                    login_path: /login
                    check_path: /login_check     
                    provider: fos_userbundle
                fos_facebook:
                    app_url: "http://apps.facebook.com/myapp/"
                    server_url: "http://localhost/Symfony/web/app_dev.php"
                    login_path: /login
                    check_path: /login_check
                    default_target_path: /
                    provider: my_fos_facebook_provider
                anonymous: true
                logout: 
                    path:   /logout
                    target: / 
                    handlers: ["fos_facebook.logout_handler"]
                #http_basic:
                #    realm: "Secured Demo Area"
            login:
                pattern:  ^/login$
                security: false

What I am worried about is that the /login_check, will check for facebook session to exists all the time, which I don’t really want. When I change the login_path and check_path for the fos_facebook, everything works just fine. Any idea what might cause this and how to solve this issue?

  • 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-06-11T14:40:37+00:00Added an answer on June 11, 2026 at 2:40 pm

    Your check_path should be different for form_login and fos_facebook. For example:

               form_login:
                    login_path: /login
                    check_path: /login_check     
                    provider: fos_userbundle
                fos_facebook:
                    app_url: "http://apps.facebook.com/myapp/"
                    server_url: "http://localhost/Symfony/web/app_dev.php"
                    login_path: /login
                    check_path: /login_check/facebook
                    default_target_path: /
                    provider: my_fos_facebook_provider
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed FOSUserBundle and I am using it in my project. Its login
I am using FOSUserBundle and I am trying to create a page that allows
I'm using FOSUserBundle to authenticate users from database and now I want add authentication
I have an example where I am trying to create an AJAX login using
I am building a web application with Symfony 2, using the FOSUserBundle bundle. Users
I am using Symfony2 and FOSUserBundle. Just as detailed in the documentation, I have
Using report builder 3.0, I have a report that queries a cube. How do
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
I'm using the FOSFacebookBundle and the FOSUserBundle with Symfony2 to manage my users. I
Using CRM 4, I have an entity form that contains a tab with an

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.