Class: FacebookOauthController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- FacebookOauthController
- Defined in:
- app/controllers/facebook_oauth_controller.rb
Instance Method Summary collapse
-
#destroy ⇒ Object
DELETE /facebook_oauth.
-
#new ⇒ Object
GET /facebook_oauth/new.
-
#show ⇒ Object
Redirect from Facebook: GET /facebook_oauth.
Instance Method Details
#destroy ⇒ Object
DELETE /facebook_oauth
19 20 21 |
# File 'app/controllers/facebook_oauth_controller.rb', line 19 def destroy self.current_facebook_access_token = nil end |
#new ⇒ Object
GET /facebook_oauth/new
5 6 7 8 |
# File 'app/controllers/facebook_oauth_controller.rb', line 5 def new self.current_facebook_access_token = nil enforce_facebook_access_token root_path end |
#show ⇒ Object
Redirect from Facebook: GET /facebook_oauth
11 12 13 14 15 16 |
# File 'app/controllers/facebook_oauth_controller.rb', line 11 def show self.current_facebook_access_token = facebook_client..process_callback params[:code], :redirect_uri => facebook_oauth_url redirect_to flash[:facebook_redirect_url] || root_url end |