The issue might be related to: https://github.com/intridea/omniauth-oauth2/issues/31 and https://github.com/mkdynamic/omniauth-facebook/issues/73