Permalink
Browse files

Documentation about the before_connect hook.

  • Loading branch information...
1 parent dd1a9de commit 242cc864bf6649377615cf0c4d3ab62cdc7263a0 @kalasjocke kalasjocke committed Sep 6, 2009
Showing with 12 additions and 1 deletion.
  1. +12 −1 README.rdoc
View
@@ -65,4 +65,15 @@ The important parts are the facebook html namespace, facebook javascript include
=== 5. Add the Facebook Connect button to your login form
- <%= authlogic_facebook_login_button %>
+ <%= authlogic_facebook_login_button %>
+
+=== Notes
+
+If you want to save some user data when connecting to facebook you can use the before_connect hook in your user model.
+
+ def before_connect(facebook_session)
+ self.name = facebook_session.user.name
+ end
+
+For more information about what you can get form the facebook_session checkout the Facebooker gem rdoc.
+

0 comments on commit 242cc86

Please sign in to comment.