Retrieving email from Twitter login app



I know this has been asked before but having real problems resolving this.

I’ve set up the app correctly to request user email on logging into the site, I’ve regenerated consumer key & secret etc and still nothing.

I’m using Abraham Williams PHP Library.

I’ve read that adding ‘include_email’ => ‘true’ to code might help.

Where do I add ‘include_email’ => ‘true’ within the library?

Any other suggestion really appreciated.


The include_email param is supported by the GET account/verify_credentials API method so you need to set it when making that request. It should look something like this.

$user = $connection->get('account/verify_credentials', ['include_email' => 'true']);


If you want effective help on forums you gotta post code!
Asking for tech help w/o code is like explaining someone your dreams. Can be very hard for people to follow.