-
Notifications
You must be signed in to change notification settings - Fork 93
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
current_facebook_user get error "This authorization code has been used." #85
Comments
What are you storing? Once you use the oauth code to get a facebook session, you need to store the session info and discard the token. Mike On Dec 10, 2012, at 4:12 AM, derri [email protected] wrote:
|
Hey Mike, This is the same error I am getting. I think it's because Facebook changed some stuff recently. This is my stack trace that I posted on Mogli.
|
Hi Mike for until a few month ago it still work, i can login and i can fetch current_facebook_user, now i just can login but can't fetch current_facebook_user, i try to remove fbsr cookies but it just remove the cookie and still can't fetch current_faebook_user. I just add facebooker2 and authlogic_facebook_connect together. it's work before. |
You should be able to get it once per login. Once you exchange the auth code for a token, you'll need to store the token and rebuild the user from that. Mike On Dec 10, 2012, at 7:56 PM, derri [email protected] wrote:
|
Same problem form me mogli (0.0.36) lib/mogli/client.rb:79:in How can i solve? |
I just pushed a completely untested change that should cache the required info. Can you try running with the facebooker2 from git to see if that fixes things? |
I install it as plugin,this is what I get: ActionView::TemplateError (Constant Facebooker2::Rails::Controller::Moglie from facebooker2/rails/controller/moglie.rb not found |
I just fixed the type. Can you try again? Mike On Dec 12, 2012, at 10:36 AM, derri [email protected] wrote:
|
I get this : there a typo lib/facebooker2/rails/controller.rb line 234 if i change it to fb_sign_in_user_and_client it's work fine |
i'm sorry when I try to logout and try to sign in again, this i what I get: Mogli::Client::OAuthException (Error validating access token: The session is invalid because the user logged out.): |
I added an fb_logout! method that you can call when that error is raised. You should be able to call that and then go through the login process. Mike On Dec 12, 2012, at 10:51 AM, derri [email protected] wrote:
|
It's work for now, I'll check it again tomorrow Thanks Mike |
Hi All
I can login using facebooker2, and on my home page I use current_facebook_user but I get error "This authorization code has been used." Mogli::Client::OAuthException.
a few month ago it doesn't happen.
any body can help me?
The text was updated successfully, but these errors were encountered: