Logout not working with restful_authentication + Facebooker

3 views
Skip to first unread message

Avishai

unread,
Nov 4, 2009, 4:54:04 AM11/4/09
to facebooker
Hi,

I have integrated Facebook connect login to my restful_authentication
based site. But when I click logout, it only logs me out for 1 page
view. The second I hit refresh, I automatically get logged in again.
Does anyone know what the problem is?

Thanks,

Avishai

Mike Mangino

unread,
Nov 4, 2009, 7:49:28 AM11/4/09
to faceb...@googlegroups.com
What method are you using to get the Facebook session object? You need
to use create_facebook_session, not set_facebook_session

Mike
--
Mike Mangino
http://www.elevatedrails.com



cpjolicoeur

unread,
Nov 23, 2009, 5:58:43 PM11/23/09
to facebooker
Sounds to me like the problem is that you are logging out of your apps
"local" account but not out of the Facebook session. Then when the
next page is loaded and the FB Connect init code runs again, it sees
you are still logged into Facebook and logs you in to your "local" app
account as well.

Try changing your logout link to use the facebooker helper like this:

fb_logout_link 'Logout', logout_path

instead of just doing a normal:

link_to 'Logout', logout_path

the fb_logout_link will log you out of both your "local" app and
Facebook.
Reply all
Reply to author
Forward
0 new messages