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

前端 未结 6 1546
囚心锁ツ
囚心锁ツ 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条回答
  •  旧时难觅i
    2021-02-07 06:41

    I had this issue as well. I was seeing the "(facebook) Callback phase initiated." message twice in my Rails logs. It turns out that I was initializing FB authentication twice (I am using Devise and Omniauth-Facebook), and I'm guessing one of these was attempting to reset the access token.

    Disabling the initializer in Omniauth-Facebook (config/initializers/omniauth.rb) fixed my issue.

提交回复
热议问题