Dealing with Oauth 2.0-facebook gem error 100: This authorization code has been used

前端 未结 6 1482
囚心锁ツ
囚心锁ツ 2021-02-07 05:44

I have been working on setting up facebook authentication for my rails app and while testing, after logging-in with my facebook account, I keep getting this error:



        
6条回答
  •  遇见更好的自我
    2021-02-07 06:45

    So I was able to work around this. It seems that my application was processing the facebook authentication, then trying to do it a second time and producing this error. Strange since I was trying to redirect to root_url. In any case, changing the page that I was redirecting to from "root_url" to "/" after storing the user info in my database seemed to make all the difference.

    I would suggest checking your development log to see if you're getting a similar error.

提交回复
热议问题