FriendsOfSymfony / FOSFacebookBundle

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

Error FOSFacebookBundle #118

Closed Raulken closed 12 years ago

Raulken commented 12 years ago

Unrecognized options "fos_facebook" under "security.firewalls.public"

what i wrog?

config.yml:

fos_facebook: file: %kernel.root_dir%/../vendor/facebook/src/base_facebook.php alias: facebook app_id: 123456879 secret: s3cr3t cookie: true permissions: [email, user_birthday, user_location]

security: providers:

choose the provider name freely

      my_fos_facebook_provider:
          id: my.facebook.user   # see "Example Custom User Provider using the FOS\UserBundle" chapter further down
  firewalls:
      public:
          pattern:   ^/.*
          fos_facebook:
              app_url: "http://apps.facebook.com/appName/"
              server_url: "http://localhost/facebookApp/"
              login_path: ^/login
              check_path: ^/login_check$
              default_target_path: /
              provider: my_fos_facebook_provider
          anonymous: true
          logout:
              handlers: ["fos_facebook.logout_handler"]

  access_control:
      - { path: ^/secured/.*, role: [IS_AUTHENTICATED_FULLY] } # This is the route secured with fos_facebook
      - { path: ^/facebook/,           role: [ROLE_FACEBOOK] }
      - { path: ^/.*, role: [IS_AUTHENTICATED_ANONYMOUSLY] }
lsmith77 commented 12 years ago

what are you using Symfony 2.0.x or master (aka 2.1.x)? for the later you can check this example: https://github.com/lsmith77/symfony-standard/tree/techtalk for the former you need to use the 2.0 branch of this bundle

Raulken commented 12 years ago

i use symfony 2.0.10

where i find the 2.0 branch of this bundle?

Raulken commented 12 years ago

is this?https://github.com/FriendsOfSymfony/FOSFacebookBundle/tree/2.0

lsmith77 commented 12 years ago

yes

Raulken commented 12 years ago

ok thx now all work only the last problem i have

Facebook needs the CURL PHP extension.