devise_facebook_connectable
devise_facebook_connectable copied to clipboard
facebook_link and normal authentication
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?
Right, I guess so - have to look into the scenarios first. You could hackit yourself I guess for now.
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 %>