Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twitter api is not returning email address with user info array

I want to make an authentication process where user can login using twitter api. I have used Abraham's PHP library for doing it. It's returning everything except user email. I have passed optional parameters like this -

$parameters['include_email'] = true;
$parameters['skip_status'] = true;
$parameters['include_entities'] = true;

And also has checked "Request email addresses from users" in Permissions Tab of my App. But it's not returning any email address. Now can anyone helps me for following queries -

1) I am sure that there is a way to do. please check this link. Then what's my fault? which thing I need to change?

2) Is there any other way to do it?

like image 224
Jobayer Avatar asked Sep 01 '25 21:09

Jobayer


1 Answers

For Any one see this problem in twitter Api As I Faced

The Solution Is :

$parameters['include_email'] = "true";

Twitter Api need value as string not bool it's very strange behavior but it work

like image 183
Looper Avatar answered Sep 03 '25 10:09

Looper