无法使用 oauth.io 获取电子邮件地址、位置和值

unable to get email address, location, values using oauth.io

我正在使用 https://oauth.io/signin 第三方网站整合 facebook、twitter、github、linkedin。 我集成了 facebook 并能够直接成功获取 ID、姓名、性别属性,但我发现很难获取电子邮件地址、位置值。

在 oauth.io 站点中,我什至添加了 facebook 的范围权限

我正在使用以下代码获取登录用户的信息。

OAuth.popup('facebook')
            .done(function (result) {
                res = result;
                result.me().done(function (response) {
                    debugger;
                    console.log('me ' + response.name);
                    console.log('me ' + response.email);

                });
            })
            .fail(function (error) {
                alert('fail');
            });

我什至尝试使用

过滤结果只提供电子邮件、生日值
OAuth.popup('facebook')
            .done(function (result) {
                res = result;
                result.me(['email', 'birthdate', 'location']).done(function (response) {
                    debugger;
                    console.log('me ' + response.name);
                    console.log('me ' + response.email);

                });
            })
            .fail(function (error) {
                alert('fail');
            });

但它只是返回空对象。 如果我遗漏了什么,有人可以告诉我吗?

我能够使用

获取 facebook 的必填字段
 result.get('/me?fields=name,email,gender,birthday').done(function (response) {
                    console.log('me ' + response.name); 
  });

但相同的代码不适用于 Twitter。 仍在寻找适用于大多数 API 的通用方式的答案