I am using some code to check if the user is logged in with facebook, but something strange happens, sometimes the code recognized the FB cookie and sometime it doesnt (i.e. if I refresh the page sometimes the cookie is recognized and then sometimes it asks me to login again - however cookie exists all times)
I also checked in Firebug and keep getting this error:
FB.login() called when user is already connected.
Is there a known solution for checking the FB cookie server side?? Am I checking the correct cookie?