Permalink
Browse files

added instructions for grabbing facebook profile data

  • Loading branch information...
1 parent 52991e5 commit d0472019995bab92349cc61fe5a6bb8d59aa7921 @langalex langalex committed Jul 15, 2009
Showing with 16 additions and 0 deletions.
  1. +16 −0 README.md
View
@@ -89,6 +89,22 @@ This will generate a feature, step definitions and fixtures to test the facebook
Finally: run the features and by now everything should be green. Congrats.
+## What else
+
+You can grab some of the facebook profile data (e.g. name, location, picture) when signing up your new users. For a complete list of attributes see `SimpleFacebookConnect::User::FIELDS`. In order to do that you could add a line of code to your signup action:
+
+ class UsersController < ApplicationController
+ def create
+ @user = # initialize user
+ ....
+ if facebook_user
+ @user.name = facebook_user.name
+ @user.about_me = facebook_user.about_me
+ end
+ @user.save
+ end
+ end
+
## Links
* facebooker: http://facebooker.rubyforge.org/

0 comments on commit d047201

Please sign in to comment.