Closed bitzesty closed 14 years ago
OK, I'm not running MongoDB locally. Yes, please let me know when you got something to test out.
i've got no idea why this isn't working, but I have a hack - assigning the fb session value to a random variable then to the user attribute works:
_x = fb_session.user.name
self.real_name = _x
=o That's weird...but I'm 99.9% sure that's not because of this plugin. Sounds like Facebooker magic. Let me know if you find out why please.
facebooker lazy loading or something very weird
solved it need to call to_s on facebooker atts on the user object or they will not be saved
Could you elaborate what you mean with a sample?
self.username = fb_session.user.username.to_s
self.real_name = fb_session.user.name.to_s
as opposed to
self.username = fb_session.user.username
self.real_name = fb_session.user.name
otherwise atlease with mongomapper - it saves nil
Could you reproduce this in a test-app? Easier to report errors in Facebooker mailing list in such case; I asked about this but no-one there seems to see the problem.
its probably a mongomapper issue - closing
here is my call back, tried a before_fb_connect but still nothing is set. will try and build a bare bones app to demonstrate the prob.