FriendsOfSymfony / FOSFacebookBundle

NOT MAINTAINED - see https://github.com/hwi/HWIOAuthBundle
321 stars 140 forks source link

InvalidConfigurationException #98

Open bitraft opened 12 years ago

bitraft commented 12 years ago

Follow the document, I got this :

InvalidConfigurationException: Invalid configuration for path "security.firewalls.public": The check_path "^/facebook/login_check$" for login method "fos_facebook" is not matched by the firewall pattern "^/facebook/.*".

        public:
            pattern:   ^/facebook/.*
            fos_facebook:
                login_path: ^/facebook/login
                check_path: ^/facebook/login_check$
                default_target_path: /mobile
                provider: my_fos_facebook_provider
            anonymous: true
            logout:
                handlers: ["fos_facebook.logout_handler"]
stof commented 12 years ago

the login path is a path, not a regex (same for the check path).

bitraft commented 12 years ago

If it is a path, then the document should be changed. I copy it form /README.md

lsmith77 commented 12 years ago

can you send a PR with your proposed fix?