how to allow single sign on

Dec 19, 2010 at 10:18 AM


 I am developing a website and integrating facebook. i want my site user will connect to the facebook using facebook connect for the first time, from next time onwards they should auto login into the facebook and also auto logout from facebook once user logs out the our site. i want windows live kind of functionality.

can any body suggest how can i achieve this, if any working sample will be appreciated.