For Facebook
config.omniauth :facebook, facebook_app_id, facebook_secret_key, :display => "popup", :scope => 'email,publish_actions', info_fields: 'email,name'
For Twitter
config.omniauth :twitter, twitter_app_id, twitter_secret_key, :display => "popup", :scope =>...