fbgraph_example
fbgraph_example copied to clipboard
undefined local variable or method `callback_oauths_url'
app/controllers/oauth_controller.rb:4:in `start'
Did you find a solution? I'm stuck with the same error here.
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"
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.
I will, thanks for your help.
you can also rename it to callback_oauth_index_url in start