Facebook has linked accounts, where facebook logs you into facebook everytime you are logged in with your google account.
So if you're logged in into gmail then visit facebook.com, facebook will automatically log you in!
How do you do this for your own domain so that when a user visits your website it logs you in into your domain? (Does facebook use google open id for this? If not, what does it use?)