Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined local variable or method `callback_oauths_url' #3

Open
rafmagana opened this issue Aug 31, 2010 · 5 comments
Open

undefined local variable or method `callback_oauths_url' #3

rafmagana opened this issue Aug 31, 2010 · 5 comments

Comments

@rafmagana
Copy link

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

@swunderlich
Copy link

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

@rafmagana
Copy link
Author

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
Copy link
Author

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.

@swunderlich
Copy link

I will, thanks for your help.

@taf2
Copy link

taf2 commented Oct 18, 2010

you can also rename it to callback_oauth_index_url in start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants