EDIT: This bug was logged, and confirmed as a Facebook bug. It has now been fixed!
I am testing my updates to move onto the new JS SDK. My app runs across multiple subdomains of my domain. On the old JDK, I was calling something like this:
FB.init({
appId: [APP_ID],
status: false,
cookie: true,
xfbml: true
});
FB.login();
On the new JDK, it looks like this:
FB.init({
appId: [APP_ID],
status: false,
cookie: true,
xfbml: true,
oauth:true
});
FB.login();
Using a cookie manager FF add on, you can see that the old version would set a cookie on mydomain.com, but the new one sets it to http://www.mydomain.com – meaning my other subdomain cannot access the cookie.
To clarify: The problem is that I cannot use the facebook cookie on different subdomains, and also if I log them in on every subdomain, I have to log them out from every subdomain too
Update: The bug has been updated by Facebook to ‘Fixed’. Hooray!
This is a facebook bug and has been logged, reproduced and accepted as high priority here: https://developers.facebook.com/bugs/256155664428653?browse=search_4e843e6d89a232275456793