Module: Facebook::Auth::Devise

Includes:
Facebook::Access::Helper
Defined in:
lib/facebook/auth/devise.rb

Instance Method Summary collapse

Methods included from Facebook::Access::Helper

#access_token_from_code, #auth_provider, #auth_url, #cookies_access_token, #fb_app, #fb_graph, #fb_login, #fb_login!, #fb_my_id, #fb_retrieve_access_token, #real_time_updates, #registration, #signed_request, #user_access_token

Instance Method Details

#createObject

based on OmniAuth 2 railscast



13
14
15
# File 'lib/facebook/auth/devise.rb', line 13

def create
  authenticated? ? authenticated : try_authenticate_user
end

#destroyObject



17
18
19
20
# File 'lib/facebook/auth/devise.rb', line 17

def destroy
  current_user_authentication.destroy
  user_authentication_destroyed
end

#indexObject



8
9
10
# File 'lib/facebook/auth/devise.rb', line 8

def index
  @authentications = current_user.authentications if current_user
end