Rails + omniauth + facebook - csrf detected
问题 I'm working on logging in a site via existing facebook account. So I registered a facebook application and stored api and secret in development.rb and production.rb files. Then I used omniauth-facebook gem + devise gem to implement this. It works perfect. By the way, an user can login either by internal authentication (by devise) or by usig facebook account. However there is a weird issue. It works perfect only if I login into facebook account in that I registered an application. So I