Comments (9)
OK, I'm not running MongoDB locally. Yes, please let me know when you got something to test out.
from devise_facebook_connectable.
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
from devise_facebook_connectable.
=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.
from devise_facebook_connectable.
facebooker lazy loading or something very weird
from devise_facebook_connectable.
solved it need to call to_s on facebooker atts on the user object or they will not be saved
from devise_facebook_connectable.
Could you elaborate what you mean with a sample?
from devise_facebook_connectable.
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
from devise_facebook_connectable.
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.
from devise_facebook_connectable.
its probably a mongomapper issue - closing
from devise_facebook_connectable.
Related Issues (20)
- Connect existing accounts HOT 1
- two models with devise :authenticatable HOT 12
- mongo_mapper throws an error with save_with_validation HOT 3
- `include': wrong argument type Class (expected Module) (TypeError) HOT 4
- facebook cookie and auto login problems HOT 20
- facebook_sign_in_link helper causes NoMethodError in Ruby 1.9.1 HOT 5
- How does this work? HOT 5
- sign_out not working with passenger HOT 12
- Devise 1.0.6 breaks facebook_connectable HOT 2
- rails 3.0.0-beta3 and devise 1.1.rc1 HOT 2
- edit user profile question HOT 7
- Facebooker::Session::SessionExpired on User.populate(*fields) HOT 1
- HAML Issues HOT 4
- facebook_sign_out_link always use the user model? HOT 2
- not working after clearing database
- before_facebook_connect(fb_session) HOT 1
- facebook.yml callback_url has wacky side effects HOT 1
- Problem signing out with facebooker 1.0.75 HOT 2
- uninitialized constant ActiveSupport::CoreExtensions (NameError)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devise_facebook_connectable.