FriendsOfSymfony/FOSFacebookBundle — Issue #102: Login fails using chrome
Author: quba
Created: 2012-01-13 15:36:46+00:00
State: open

Can anybody confirm, that this bundle works well using chrome (or chromium)? My implementation is little bit different because of using FosUserBundle. It's strange, because everything works great on firefox, opera and konqueror. Chromiums errors returned by the bundle:
`The Facebook user could not be retrieved from the session.`
Chrome's javascript console:
`Unsafe JavaScript attempt to access frame with URL https://s-static.ak.fbcdn.net/connect/xd_proxy.php?version=3#cb=f1ce42d3c4&origin=http%3A%2F%2Flocalhost%2Ff21dbdef14&relation=opener&transport=postmessage&frame=f1acd948a8&access_token=AAAENJQlELA4BAOMQLgOEniBZA70W4b5ZCvgLozTIuMezm0qsBmWoN5RqrGP96Q0BF9ep2VbDmWhf3dyq7ZCSX0ZCO7WBnQqdXImQBU6mptR5TcbIBApL&expires_in=6259&signed_request=zYqbw6x_v-tvG_bIzxwkC7bh5KetUZ372J6p08CERrM.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImNvZGUiOiJBUUNvbGVkVDJRUW1yZjhhNlg4eUhMWi13STg5c1J2QVkzVnJvQlRwT0Q4YjduaXdlTUVXTEFQMlVCeTJUX0hDQlB5NzFrcUo5Vmt6RWJ2NTVHR3B0Q2hyaWs2MUNLR3RkaDJ5TXF0LS1iQWZtdWk1TWtrMFR3TjkzRnQ5TzdYTC13d3RfMWZBaUowS0QtN2ZhWktHNGNzWTZaUzVMSG5aY1NqcXBhOEJUVVBvTVNDOEFoeWNqSVBLd2xHX1pFZWFHSnNzRkdUYWZxTl82SW1ya0pPQkZoN1MiLCJpc3N1ZWRfYXQiOjEzMjY0Njc3NDEsInVzZXJfaWQiOiIxMDAwMDE1MzkzNTM1MjEifQ&base_domain=localhost from frame with URL http://localhost/~quba/myapp/web/app_dev.php/login. Domains, protocols and ports must match.
XHR finished loading: "http://localhost/~quba/myapp/web/app_dev.php/_wdt/4f104a9c664c5".`
Firewall configuration:
`firewalls:
public:
pattern: ^/
openid: true
form_login:
provider: fos_userbundle
login_path: /login
always_use_default_target_path: true
default_target_path: /login
fos_facebook:
login_path: /login
check_path: /facebook/login_check
default_target_path: /login
provider: my_fos_facebook_provider
logout:
target: /login
anonymous: ~`
js login action:
http://paste.org/43693

If you think it's fosfacebook+fosuser issue and not ony fosfacebook, just close it.