mmangino / facebooker2

A simple facebook connect library for ruby
MIT License
311 stars 93 forks source link

Documentation? current_facebook_user only contains id #16

Closed urbanistica closed 14 years ago

urbanistica commented 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.

mmangino commented 14 years ago

you have to call fetch on the user if you want it to fetch the data.