From 9ab4a4603eb8af7ac2caa141bbad1e3c7deac564 Mon Sep 17 00:00:00 2001 From: "Jonathan R. Wallace" Date: Mon, 28 Jun 2010 23:59:12 -0400 Subject: [PATCH] only need a logout link when you are logged in --- README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README b/README index a6f852f..074479b 100644 --- a/README +++ b/README @@ -39,13 +39,13 @@ shared login partial. or <%= "Hello #{fb_name(current_facebook_user, :useyou => false)}!" # link to facebook profile %> + <%= fb_logout_link("Logout of fb", request.url) %>
<% else # you must explicitly request permissions for facebook user fields. # here we instruct facebook to ask the user for permission for our website # to access the user's facebook email and birthday %> <%= fb_login_and_redirect('', :perms => 'email,user_birthday') %> - <%= fb_logout_link("Logout of fb", request.url) %>
<% end %> Copyright (c) 2010 Mike Mangino, released under the MIT license