所以我正在Meteor js应用上工作,我需要为其添加社交登录名。
我们正在使用useraccounts:unstyled
软件包进行登录。我最近添加了accounts-facebook
程序包,但工作不正常。
这是我的配置:
AccountsTemplates.configure({
privacyUrl: 'privacy',
termsUrl: 'terms-of-use',
homeRoutePath: '/home',
redirectTimeout: 4000,
reCaptcha: {
siteKey: Meteor.settings.public.reCaptcha.siteKey,
theme: "light",
data_type: "image"
},
sendVerificationEmail: true
});
这是我的服务配置:
ServiceConfiguration.configurations.update(
{ "service": "facebook" },
{
$set: {
// you guys know I cant post the actual keys
"appId": "XXXXXXXXXXX",
"secret": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
},
{ upsert: true }
);
问题是当我单击“使用Facebook登录”按钮时,它将在控制台中引发以下错误:
Error in OAuth Server: Failed to complete OAuth handshake with Facebook. failed [400] {"error":{"message":"Error validating verification code. Please make sure your redirect_uri is identical to the one you used in the OAuth dialog request"
任何帮助将不胜感激,谢谢