After some reversal, I found a solution. Now I think that we should explicitly require the required fields. For me to fix just add first_name and last_name to facebook .
In my initializers I added first_name and last_name to info fields .
info_fields: 'email, first_name, last_name'
Update
Now my complete configuration file will look like this
config.omniauth :facebook, ENV["FACEBOOK_APP_ID"], ENV["FACEBOOK_SECRET"], scope: 'email', info_fields: 'email, first_name, last_name'
Abhilash
source share