Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Take error in endpoint_controller from error_description param

  • Loading branch information...
commit 81e5b3db67736b2ad88ad563cd08e85c31cce745 1 parent c677a4c
Mikhail authored February 28, 2012
4  app/controllers/facepalm/endpoint_controller.rb
@@ -3,7 +3,7 @@ class EndpointController < ActionController::Base
3 3
     # OAuth 2.0 endpoint action added to ApplicationController and mounted to /facebook_oauth
4 4
     def show
5 5
       if params[:error]
6  
-        raise Facepalm::OAuthException.new(params[:error][:message])
  6
+        raise Facepalm::OAuthException.new(params[:error_description])
7 7
       else
8 8
         # this is where you get a code for requesting an access_token to do additional OAuth requests
9 9
         # outside of using the FB JavaScript library (see Authenticating Users in a Web Application
@@ -25,4 +25,4 @@ def show
25 25
       end
26 26
     end
27 27
   end
28  
-end
  28
+end

0 notes on commit 81e5b3d

Please sign in to comment.
Something went wrong with that request. Please try again.