Omniauth-facebook keeps reporting invalid_credentials

后端 未结 7 1757
野性不改
野性不改 2020-12-05 07:13

I am trying to implement omniauth-facebook as described in Railscast #360 and have run into quite a roadblock. When I click on the signin link, I get the desired popup aski

7条回答
  •  我在风中等你
    2020-12-05 07:32

    It seems like omniauth-facebook v1.4.1 introduced an issue with CSRF. A temporary fix is to just roll back to v1.4.0. In your Gemfile, change the omniauth-facebook line to:

    gem 'omniauth-facebook', '1.4.0'
    

    I've reported the issue: https://github.com/mkdynamic/omniauth-facebook/issues/73

提交回复
热议问题