Skip to content

Commit

Permalink
Documentation about the before_connect hook.
Browse files Browse the repository at this point in the history
  • Loading branch information
kalasjocke committed Sep 6, 2009
1 parent dd1a9de commit 242cc86
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.