[英]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.我想做一个身份验证过程,用户可以使用 twitter api 登录。 I have used Abraham's PHP library for doing it.
我使用亚伯拉罕的 PHP 库来做这件事。 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. 1)我相信有办法做到。 please check this link .
请检查此链接。 Then what's my fault?
那我有什么错呢? which thing I need to change?
我需要改变什么?
2) Is there any other way to do it? 2)有没有其他方法可以做到?
For Any one see this problem in twitter Api As I Faced任何人都可以在 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 Twitter Api 需要值作为字符串而不是 bool 这是非常奇怪的行为,但它可以工作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.