-
Notifications
You must be signed in to change notification settings - Fork 467
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
Correct token produces "Koala::Facebook::APIError (OAuthException: Error validating application.)" #26
Comments
Hey jensb, You don't need to urlescape the token -- it comes back from Facebook immediately usable (from both the redirect-based and the Javascript-based methods). The uid|code|code format goes straight into Koala. Let me know if that works! Best, Alex Alex |
Hello, sorry ... neither methods work. Any other ideas? I tried logging both tokens, but using exactly that token in the URL at graph.facebook.com works. Does Koala log debugging information somewhere? Thank you! |
Strange.. now it works suddenly. I did not change the code at all. Thanks for your reply! I'm now going to check out the TestUsers API to write some RSpec tests. |
I'm having the exact same error. My access token works fine in the Rails console but if I run the code on my development server, I get the EXACT same OAuthException and Koala stack trace. Also, I should note that I am NOT using urlescape. |
I'm getting a similar result. If I'm logged out of my app, then log into FB in a different window on facebook.com, then go back to my app and refresh the page... the fb-login-button says I'm logged in, but the data returned from @oauth.get_user_info_from_cookie is nil. If I then refresh the page, @oauth.get_user_info_from_cookie contains the expected hash. |
@mwmitchell: That sounds like an issue with the FB Javascript library and the cookie timing -- the library may not have updated your status with Facebook at the time the server is trying to read the cookies. Can you see if the cookies were set in the browser at the time of the mismatch? This is probably not a Koala issue, but you could file an issue against the Facebook Connect SDK (https://github.com/facebook/connect-js). |
I use Koala together with Omniauth to integrate into Facebook. Omniauth works fine so far and after authenticating the user, it produces an access token in the "uid | code-code | code" format. Using this code in the browser via
works fine. However, using this code (my_token) as follows
produces
Why is that ... can you please help?
Thank you!
The text was updated successfully, but these errors were encountered: