fbgraph_example icon indicating copy to clipboard operation
fbgraph_example copied to clipboard

undefined local variable or method `callback_oauths_url'

Open rafmagana opened this issue 14 years ago • 5 comments

app/controllers/oauth_controller.rb:4:in `start'

rafmagana avatar Aug 31 '10 17:08 rafmagana

Did you find a solution? I'm stuck with the same error here.

swunderlich avatar Sep 06 '10 11:09 swunderlich

I changed the name of OauthController#callback to OauthController#authorized and I used its url as oauth callback:

 ...authorize_url(:redirect_uri => "http://server/oauth/authorized"...

then in OauthController#authorized:

...process_callback(params[:code], :redirect_uri => "http://server/your_app"

rafmagana avatar Sep 06 '10 14:09 rafmagana

It'd be nice if you read how does the authentication actually works:

http://developers.facebook.com/docs/authentication/

and go to the "Authenticating Users in a Web Application" section.

rafmagana avatar Sep 06 '10 15:09 rafmagana

I will, thanks for your help.

swunderlich avatar Sep 06 '10 15:09 swunderlich

you can also rename it to callback_oauth_index_url in start

taf2 avatar Oct 18 '10 22:10 taf2