Closed urbanistica closed 14 years ago
apparently on the id has a value in the current_facebook_user. I'm trying to use email and first and last name to populate a user record, and they are both empty, as is first_name, last_name.
Accessed in application.rb as
user = User.new(:email => current_facebook_user.email, :first_name => current_facebook_user.first_name, :last_name => current_facebook_user.last_name, :alias => "#{current_facebook_user.first_name} #{current_facebook_user.last_name}", :facebook_id => current_facebook_user.id)
after confirming that current_facebook_user exists.
you have to call fetch on the user if you want it to fetch the data.
apparently on the id has a value in the current_facebook_user. I'm trying to use email and first and last name to populate a user record, and they are both empty, as is first_name, last_name.
Accessed in application.rb as
user = User.new(:email => current_facebook_user.email, :first_name => current_facebook_user.first_name, :last_name => current_facebook_user.last_name, :alias => "#{current_facebook_user.first_name} #{current_facebook_user.last_name}", :facebook_id => current_facebook_user.id)
after confirming that current_facebook_user exists.