How to use the connect with Facebook?

I'm using HTML, JavaScript jQuery &.

Want to connect with Facebook on my Web site (not facebook site):

.......



Autologoutlink = "true" >

When I logout, is from Facebook.com too, not just from my Web site.

Why is this, how can it be fixed?