tags:

views:

126

answers:

2

Hello,

I'm looking on how to implement auto login with my website using facebook connect,

currently its working fine, but user have to click connect every time they come to my site.

and is it possible to make it they logout in facebook too if they log out from my website, vice versa?

Thank you for any advice and help.

A: 

You can use FB.getLoginStatus() to ping Facebook in the background and get a user session if they have already authorized your application. Here's an auth related example which may help: http://fbrell.com/auth/all-in-one. You can also just pass the option "status: true" when you initialize your application with FB.init() to automatically trigger this check.

daaku