[Facebooker-talk] facebook_session not working for me
Ken Schroeder
schroeder.ken at gmail.com
Sat Apr 26 23:28:18 EDT 2008
Do you have the facebook_session method defined?
>From pg 50 from Mike's latest release.
def facebook_session
@facebook_session ||=
returning Facebooker::Session.create do |session|
session.secure_with!(session_key,facebook_id,1.day.from_now)
end
end
On Sat, Apr 26, 2008 at 10:22 PM, Dustin Anderson <dustin at dustinanderson.com>
wrote:
> Hey All,
>
> I can't get facebook_session to return anything but nil.
>
> I'm following along in Mike Mangino's pragmatic programmer's book
> about creating invitations - and adding info to a profile...
>
> There is a part where we are supposed to grab the @user to be able to
> set the profile_fbml on it.
> @user = facebook_session.user
> @user.profile_fbml = render_to_string(:partial=>"profile",
> :locals=>{:from=>params[:from]})
>
> Anyway, it never worked for me... I did an @user.inspect and it's just
> nil. facebook_session doesn't return anything.
>
> Any ideas?
>
> Thanks in advance!
> Dustin
> _______________________________________________
> Facebooker-talk mailing list
> Facebooker-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/facebooker-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080426/e75d6bab/attachment.html>
More information about the Facebooker-talk
mailing list