facebook ultimate login remains waiting on subdomains

Need help: Login for facebook connect is working for the main domain, but when logging in from a subdomain address, it just stays on the waiting gif. However, if I wait long enough (say 2-3 secs) and then refresh the screen manually, I can see that I'm logged in.