[Facebooker-talk] fb connect session problem.
Hyuk Yoo
hyukyoo at gmail.com
Fri Feb 6 14:28:36 EST 2009
i'm new to facebooker and rails and i'm having problems with the session.
i put this in application.rb
before_filter :set_facebook_session
helper_method :facebook_session
and
<% if facebook_session %>
<h2>You are logged in as <%= facebook_session.user.name %></h2><%=
link_to_function "Sign Out from Facebook",
"FB.Connect.logoutAndRedirect('/')"%>
<% else %>
<h2>You are not logged in!</h2><%= fb_login_button%>
<% end %>
this in my index.rhtml
when i sign out i get the:
Facebooker::Session::SessionExpired in Welcome#index
looks like the session didn't reset.
i'm looking for way to reset the session when i log out. any ideas?
thanks
richard yoo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20090206/c63d25ad/attachment.html>
More information about the Facebooker-talk
mailing list