A couple of weeks back, I wrote about the annoying bug with the Facebook Connect JS library where it wouldn’t set cookies locally (details in this Quora question) and how it could be solved with localtunnel. No matter how much easier localtunnel makes the debugging, it doesn’t the solve the real problem of setting cookies on localhost.
So, I wrote a couple of functions that let you do exactly that. The code’s on Gist here. I hope this saves someone 10 hours of banging their head thanks to Facebook’s incompetency.
July 13th, 2010
by Michael
Thank you! I’ve been banging my head against this for probably 10 hours already, unfortunately, but you definitely saved me a few more now that I know what the problem is. :)
September 6th, 2010
by kuldeep
hi, i found similar problem with my self , but there is option set cookie true when you initialize FB, It solve my problem.
September 7th, 2010
by Abi Raja
The Author
Kuldeep, I tried that option but it didn’t work for me (Firefox/Chrome on OSX). I’m not sure if they have updated the source recently though.
Michael, you’re welcome :)