我正在创建一个通用商店应用,并使用以下代码通过Facebook验证用户
client.login("facebook").done(function(result) {
console.log(result);
}, function(err) {
console.log(err);
});
这在Windows 8.1上工作正常,但在Windows Phone 8.1上会出错,并显示意外故障。
控制台中的错误对象如下所示
The method Windows.ApplicationModel.Resources.Core.ResourceMap.getValue has been deprecated. GetValue(string) may be altered or unavailable for releases after Windows Phone 'OSVersion' (TBD). Instead, use GetValue(string, ResourceContext).
Unexpected failure.
{
[functions]: ,
__proto__: { },
exception: {
[functions]: ,
__proto__: { },
description: "Not implemented",
message: "Not implemented",
name: "WinRTError",
number: -2147467263,
stack: "WinRTError: Not implemented
at login (ms-appx://xxxxx-xxxxx-xxxxx-xxxxx-xxxxx/js/MobileServices.js:2224:17)
at loginWithLoginControl (ms-appx://xxxxx-xxxxx-xxxxx-xxxxx-xxxxx/js/MobileServices.js:1516:13)
at loginWithProvider (ms-appx://xxxxx-xxxxx-xxxxx-xxxxx-xxxxx/js/MobileServices.js:1358:17)
at login (ms-appx://xxxxx-xxxxx-xxxxx-xxxxx-xxxxx/js/MobileServices.js:1265:17)
at Anonymous function (ms-appx://xxxxx-xxxxx-xxxxx-xxxxx-xxxxx/js/MobileServices.js:322:17)
at Anonymous function (ms-appx://xxxxx-xxxxx-xxxxx-xxxxx-xxxxx/js/MobileServices.js:2063:25)
at Promise_ctor (ms-appx://microsoft.phone.winjs.2.1/js/base.js:2038:17)
at Anonymous function (ms-appx://xxxxx-xxxxx-xxxxx-xxxxx-xxxxx/js/MobileServices.js:2046:17)
at Anonymous function (ms-appx://xxxxx-xxxxx-xxxxx-xxxxx-xxxxx/js/default.js:15:13)"
},
message: "Unexpected failure."
}
我在我的azure服务上使用JavaScript后端,我的仪表板将我的身份验证尝试记录为http服务器错误。有什么想法吗?