{"action":"created","issue":{"url":"https://api.github.com/repos/hwi/HWIOAuthBundle/issues/919","labels_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/issues/919/labels{/name}","comments_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/issues/919/comments","events_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/issues/919/events","html_url":"https://github.com/hwi/HWIOAuthBundle/issues/919","id":120376883,"number":919,"title":"0.4@dev facebook resource owner No oauth code in the request","user":{"login":"pitraadytia","id":8655316,"avatar_url":"https://avatars.githubusercontent.com/u/8655316?v=3","gravatar_id":"","url":"https://api.github.com/users/pitraadytia","html_url":"https://github.com/pitraadytia","followers_url":"https://api.github.com/users/pitraadytia/followers","following_url":"https://api.github.com/users/pitraadytia/following{/other_user}","gists_url":"https://api.github.com/users/pitraadytia/gists{/gist_id}","starred_url":"https://api.github.com/users/pitraadytia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pitraadytia/subscriptions","organizations_url":"https://api.github.com/users/pitraadytia/orgs","repos_url":"https://api.github.com/users/pitraadytia/repos","events_url":"https://api.github.com/users/pitraadytia/events{/privacy}","received_events_url":"https://api.github.com/users/pitraadytia/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hwi/HWIOAuthBundle/labels/Support%20request","name":"Support request","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-04T10:48:14Z","updated_at":"2015-12-10T17:00:22Z","closed_at":null,"body":"hi every one,\r\n\r\nI trying HWIOAuthBundle 0.4 (symfony 2.8.0 )  with facebook resource owner, but always encounter a ```No oauth code in the request ```\r\n\r\nThis is ```$request``` debug from method ```handle()``` in ```HWI\\Bundle\\OAuthBundle\\OAuth\\ResourceOwner\\GenericOAuth2ResourceOwner``` \r\n\r\n![issue_no_code](https://cloud.githubusercontent.com/assets/8655316/11587706/cd03808e-9aad-11e5-8670-c59e4353a383.png)\r\n\r\nquery parameters array has ```?code``` instead ```code```\r\n\r\nmaybe something is wrong with my config ? any ideas ? thanks in advance.\r\n\r\nconfig.yml\r\n```\r\nresource_owners:\r\n      facebook:\r\n          type:                facebook\r\n          client_id:           xxxxx\r\n          client_secret:      xxxx\r\n          scope:         \"email\"\r\n          infos_url:     \"https://graph.facebook.com/me?fields=id,name,email,picture.type(square)\"\r\n          paths:\r\n              email:          email\r\n              profilepicture: picture.data.url\r\n          options:\r\n              display: popup #dialog is optimized for popup window\r\n              auth_type: rerequest # Re-asking for Declined Permissions\r\n```\r\n\r\nrouting.yml\r\n```\r\nhwi_oauth_login:\r\n    resource: \"@HWIOAuthBundle/Resources/config/routing/login.xml\"\r\n    prefix:   /login\r\n\r\nhwi_oauth_redirect:\r\n    resource: \"@HWIOAuthBundle/Resources/config/routing/redirect.xml\"\r\n    prefix:   /connect\r\n\r\n\r\nfacebook_login:\r\n    path: /c-facebook\r\n\r\nlogout:\r\n    path:   /logout\r\n```\r\n\r\nsecurity.yml\r\n\r\n```\r\n        secured_area:\r\n            pattern: ^/\r\n            anonymous: ~\r\n            logout: true\r\n            logout:\r\n                path:   /logout\r\n                target: /\r\n            oauth:\r\n                resource_owners:\r\n                    facebook:        facebook_login\r\n                login_path:        /login\r\n                default_target_path: /page\r\n                oauth_user_provider:\r\n                    service: ap_user.oauth_user_provider\r\n```"},"comment":{"url":"https://api.github.com/repos/hwi/HWIOAuthBundle/issues/comments/163687540","html_url":"https://github.com/hwi/HWIOAuthBundle/issues/919#issuecomment-163687540","issue_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/issues/919","id":163687540,"user":{"login":"pitraadytia","id":8655316,"avatar_url":"https://avatars.githubusercontent.com/u/8655316?v=3","gravatar_id":"","url":"https://api.github.com/users/pitraadytia","html_url":"https://github.com/pitraadytia","followers_url":"https://api.github.com/users/pitraadytia/followers","following_url":"https://api.github.com/users/pitraadytia/following{/other_user}","gists_url":"https://api.github.com/users/pitraadytia/gists{/gist_id}","starred_url":"https://api.github.com/users/pitraadytia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pitraadytia/subscriptions","organizations_url":"https://api.github.com/users/pitraadytia/orgs","repos_url":"https://api.github.com/users/pitraadytia/repos","events_url":"https://api.github.com/users/pitraadytia/events{/privacy}","received_events_url":"https://api.github.com/users/pitraadytia/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T17:00:22Z","updated_at":"2015-12-10T17:00:22Z","body":"hi @xaben  YESS , it works ;)\r\n\r\nmany thanks. "}}