Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

facebook_link and normal authentication #8

Open
bitzesty opened this issue Dec 15, 2009 · 2 comments
Open

facebook_link and normal authentication #8

bitzesty opened this issue Dec 15, 2009 · 2 comments

Comments

@bitzesty
Copy link

can facebook_link detect the presence of fb session on a user, and then just display the standard logout link, if the user did not sign in with facebook?

@grimen
Copy link
Owner

grimen commented Dec 15, 2009

Right, I guess so - have to look into the scenarios first. You could hackit yourself I guess for now.

@siong1987
Copy link

You can just detect whether @facebook_session exists, for example:

    <% if @facebook_session %>
      <%= facebook_sign_out_link :for => :user %>
    <% else %>
      <%= link_to 'Sign out', destroy_user_session_path %>            
    <% end %>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants