• Facebook Connect - logging out
    8 replies, posted
Does anyone have experience with single-sign on for Facebook? I've got users registering and logging in fine, but logging out just won't work. The process currently: Click logout >> PHP page removes all cookies including Facebooks >> redirect to a page which runs FB.init for the app then FB.logout and redirects. I've tried removing the cookie after FB.logout with no success. Why is it so fucking hard to just logout? Facebook should use OpenID. Anyway, help would be much appreciated!
What SDK are you using?
None, I'm using code pieces from - [url]http://developers.facebook.com/docs/guides/web[/url] (the cookie function & javascript method). I'm currently looking for a way to do it without javascript. Looking at stack overflow, it might be possible redirecting the user to facebook rather than the popup. Facebook connect is shit compared to OpenID to be honest.
in the PHP SDK there is a function called Logout URL, but I don't know if it will help you as it also logs the user out of facebook. In case you want that.
I think I've got a way of doing it. Currently I'm placing the facebook js on the homepage/login page which is auto-logging in users. I'll grab the button image instead and link it to a page which will then login via facebook. I'll also have the facebook login function remove the facebook cookie (because it's not required, the site has it's own login/register system behind facebook/openid).
Alright, I guess yours is an external website?
Currently testing on localhost, but it soon will be online :)
I only worked on Canvas applications. I had no use for external applications yet. As making a website without content has not much of a purpose. [editline]25th December 2010[/editline] Also, what is it about?
It's really just an experiment, inspired by the recent goings-on at delicious. It's a bookmarking site/a test of my core PHP system and something to keep me entertained. It's essentially a super-simple tag-based bookmarking app which uses Facebook & openID for logins.
Sorry, you need to Log In to post a reply to this thread.