Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #3 from Magicdream/master

Take error in endpoint_controller from error_description param
  • Loading branch information...
commit 646287caa93dab0a4fca4b4d05033b3e5148ae4e 2 parents 61ba685 + 81e5b3d
@dekart authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/controllers/facepalm/endpoint_controller.rb
View
4 app/controllers/facepalm/endpoint_controller.rb
@@ -3,7 +3,7 @@ class EndpointController < ActionController::Base
# OAuth 2.0 endpoint action added to ApplicationController and mounted to /facebook_oauth
def show
if params[:error]
- raise Facepalm::OAuthException.new(params[:error][:message])
+ raise Facepalm::OAuthException.new(params[:error_description])
else
# this is where you get a code for requesting an access_token to do additional OAuth requests
# outside of using the FB JavaScript library (see Authenticating Users in a Web Application
@@ -25,4 +25,4 @@ def show
end
end
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.