current_facebook_user remains nil

22 views
Skip to first unread message

AkshayNathan

unread,
Dec 14, 2011, 1:32:12 AM12/14/11
to facebooker
Hey Mike,

Really strange problem. This is my website http://melodizr.com, it
uses the facebook connect function of facebooker2 once it finds a
result to have a user suggest other results, like a result etc.

Up till a couple of days ago this was working fine. Now,
current_facebook_user always seems to return nil even when there is
clearly a cookie set according to firefox (both a session cookie for
the site and one for the facebook connect part)

This is the only code when any facebooker stuff happens.

<% puts current_facebook_user.inspect %>
<%= fb_connect_async_js %>
<% if !current_facebook_user.nil? %>
//show the error form
</div>
<% else %>
<div id="fbcont">
<p>login with Facebook to rate recommendations and suggest other
songs!</p>
<%= fb_login_and_redirect "", :perms => '' %>
</div>
<% end %>

Mike Mangino

unread,
Dec 14, 2011, 9:55:02 AM12/14/11
to faceb...@googlegroups.com
Facebook recently switched to requiring OAuth2. If you aren't on the latest versions of Facebooker or Mogli, this will likely break.

Mike

> --
> You received this message because you are subscribed to the Google Groups "facebooker" group.
> To post to this group, send email to faceb...@googlegroups.com.
> To unsubscribe from this group, send email to facebooker+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/facebooker?hl=en.
>

Reply all
Reply to author
Forward
0 new messages