Meteor 用户帐户 - Facebook 登录未显示,但显示 Google
Meteor User Accounts - Facebook login not showing but Google is
我正在尝试按照 this 指南集成 Meteor UserAccounts Bootstrap 包。
我已为这两项服务正确设置 ServiceConfiguration
,但只显示 Google。我也尝试添加 Twitter,但即使那样也不起作用。有谁知道我错过了什么?
包 -
meteor-platform
accounts-password
iron:router
aldeed:collection2
useraccounts:bootstrap
nemo64:bootstrap
less
accounts-google
service-configuration
fortawesome:fontawesome
accounts-facebook
accounts-twitter
服务器上的帐户配置 -
// /server/lib/config/accoutns.js
Meteor.startup(function() {
// Add Facebook configuration entry
ServiceConfiguration.configurations.update(
{ service: "facebook" },
{ $set: {
appId: "xxxxxxxxxxxxxxxxxxxx",
secret: "xxxxxxxxxxxxxxxxxxx"
}
},
{ upsert: true }
);
// Add Google configuration entry
ServiceConfiguration.configurations.update(
{ service: "google" },
{ $set: {
clientId: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
client_email: "XXXXXXXXXXXXXXXXXXXXXXXXXXX",
secret: "XXXXXXXXXXXXXXXXXXXXXXXX"
}
},
{ upsert: true }
);
ServiceConfiguration.configurations.update(
{ service: "twitter" },
{ $set: {
consumerKey: "XXXXXXXXXXXX",
secret: "XXXXXXXX"
}
},
{ upsert: true }
);
});
但这就是全部 -
EDIT1:我刚刚注意到一些非常有趣的事情。我在我朋友的 macbook 上克隆了这个项目,一切都如预期的那样完美。 (我之前使用的是 Linux mint 17)。我认为这是某种错误,但不确定这里的罪魁祸首是什么。
您可能在浏览器上使用了 ublock 或 adblock。只需将其禁用即可。
有点奇怪,但看起来 Meteor 未缩小时它会在其 url 中阻止任何与 facebook 或 twitter 相关的内容,例如 facebook/twitter 包的 js 代码。
我正在尝试按照 this 指南集成 Meteor UserAccounts Bootstrap 包。
我已为这两项服务正确设置 ServiceConfiguration
,但只显示 Google。我也尝试添加 Twitter,但即使那样也不起作用。有谁知道我错过了什么?
包 -
meteor-platform
accounts-password
iron:router
aldeed:collection2
useraccounts:bootstrap
nemo64:bootstrap
less
accounts-google
service-configuration
fortawesome:fontawesome
accounts-facebook
accounts-twitter
服务器上的帐户配置 -
// /server/lib/config/accoutns.js
Meteor.startup(function() {
// Add Facebook configuration entry
ServiceConfiguration.configurations.update(
{ service: "facebook" },
{ $set: {
appId: "xxxxxxxxxxxxxxxxxxxx",
secret: "xxxxxxxxxxxxxxxxxxx"
}
},
{ upsert: true }
);
// Add Google configuration entry
ServiceConfiguration.configurations.update(
{ service: "google" },
{ $set: {
clientId: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
client_email: "XXXXXXXXXXXXXXXXXXXXXXXXXXX",
secret: "XXXXXXXXXXXXXXXXXXXXXXXX"
}
},
{ upsert: true }
);
ServiceConfiguration.configurations.update(
{ service: "twitter" },
{ $set: {
consumerKey: "XXXXXXXXXXXX",
secret: "XXXXXXXX"
}
},
{ upsert: true }
);
});
但这就是全部 -
EDIT1:我刚刚注意到一些非常有趣的事情。我在我朋友的 macbook 上克隆了这个项目,一切都如预期的那样完美。 (我之前使用的是 Linux mint 17)。我认为这是某种错误,但不确定这里的罪魁祸首是什么。
您可能在浏览器上使用了 ublock 或 adblock。只需将其禁用即可。
有点奇怪,但看起来 Meteor 未缩小时它会在其 url 中阻止任何与 facebook 或 twitter 相关的内容,例如 facebook/twitter 包的 js 代码。