"omniauth-twitter" email id is not fetched from twitter in ruby on rails

Twitter doesn´t give you the email via API.

This works if you are using omniauth-facebook gem for example, but twitter doesn´t offer you the email - you have to create a workaround.

For example ask the user in a second step to fill in his/her email address.

The accepted answer is outdated. Twitter is providing email now via this Special Permission Form. Complete the form requesting special permissions and wait for approval.

Also you can see this answer for more info.

Omniauth gem fetch the users email

see: include_email=true

you have to enable the additional information Additional Permission