can’t create a facebook signup button symfony

I have created a facebook developper account in order to add a signup with facebook button but I get this error after following this tutorial

Unexpected characters near ” resource_owners: any_name: type:facebook client_id:1654896674667347 client_secret:27804c48ab2159991982e49a70acbf68″ at
line 93 (near “client_secret:27804c48ab2159991982e49a70acbf68”).

config.yml

hwi_oauth:
firewall_names: [secured_area]
    resource_owners:
        any_name:
            type:                facebook
            client_id:           1654896674667347
            client_secret:       27804c48ab2159991982e49a70acbf68

security.yml

 secured_area:
        anonymous: ~
        oauth:
            resource_owners:
                facebook:           "/login/check-facebook"
                google:             "/login/check-google"
                my_custom_provider: "/login/check-custom"
                my_github:          "/login/check-github"
            login_path:        /login
            use_forward:       false
            failure_path:      /login

            oauth_user_provider:
                service: my.oauth_aware.user_provider.service

routing.yml

hwi_oauth_redirect:
resource: "@HWIOAuthBundle/Resources/config/routing/redirect.xml"
prefix:   /connect

hwi_oauth_connect:
    resource: "@HWIOAuthBundle/Resources/config/routing/connect.xml"
    prefix:   /connect

hwi_oauth_login:
    resource: "@HWIOAuthBundle/Resources/config/routing/login.xml"
    prefix:   /login

facebook_login:
    path: /login/check-facebook

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *