I am working on a site that will allow users to create an account. Then website developers will be able to integrate that authentication system into their site and allow users to login with my sites login credentials. I am wanting to do it similar to the way facebook connect works so that the users site does not need to redirect to my site to login then we do a callback back to the page they came from.
I know facebook uses cookies but I am not sure how they are checking to see if they are logged in.
Things I have noticed:
Because of this, it looks like they are using cross domain cookies or something but I am not sure how to do this.
Can someone with knowledge of how Facebook Connect works exactly, explain how I can achieve this functionality in my own system?
Facebook is moving largely to a OAuth 2.0 based solution. Our authentication guide and the official OAuth 2.0 draft spec are good places to start.