3 ms·
Here is what I am doing. I am calling FB.init and FB.login , after a click so that the popup window shows up. You can see it live here: http://qbix.com http://
by EGreg 16y ago
Here is what I am doing. I am calling FB.init and FB.login , after a click so that the popup window shows up.
You can see it live here: http://qbix.com http://qbix.com
Now, if you go and put it in an iframe (try it with jsfiddle.com or something), then in every browser except Safari and IE, it works: the popup shows up, and after I click Allow, the fbs_ cookie gets placed.
In IE, I think I can easily make it work by sending a cool P3P header so IE can save cookies.
In Safari, I can make cookes be saved by first posting into that frame. In your jsfiddle or page or whatever, make a form with method="post" and target="thatframename" and then submit() that form using javascript. Now the cookies should be set for my domain, right?
Yes, but now open up the Developer console on safari, and click "Storage". Watch what gets saved. A bunch of weird cookies by facebook. On every other browser, the fbs_ cookie gets saved but here we get a bunch of weird cookies. Why? How can I get the fbs_ cookie saved so I can make calls to my server and have the user authenticated properly? See what I mean?