Javascript Tianium ACS SDK-404未能对用户进行身份验证
在通过社交整合对用户进行身份验证后,我正在尝试访问Appcelerator Tianium SDK for ACS。我正在使用下面的代码,它是从中逐行复制的,但我仍然无法让它工作。用户登录的调用成功,但随后对PhotoCollections API的调用返回“404-用户身份验证失败” 我正在使用oauth 3腿身份验证,用户身份验证方案设置为Authorization Server。我也尝试过其他ACS API,但没有任何运气。请帮忙!我已经在这上面呆了两个星期了Javascript Tianium ACS SDK-404未能对用户进行身份验证,javascript,titanium,appcelerator,titanium-alloy,Javascript,Titanium,Appcelerator,Titanium Alloy,在通过社交整合对用户进行身份验证后,我正在尝试访问Appcelerator Tianium SDK for ACS。我正在使用下面的代码,它是从中逐行复制的,但我仍然无法让它工作。用户登录的调用成功,但随后对PhotoCollections API的调用返回“404-用户身份验证失败” 我正在使用oauth 3腿身份验证,用户身份验证方案设置为Authorization Server。我也尝试过其他ACS API,但没有任何运气。请帮忙!我已经在这上面呆了两个星期了 fb.addEventLis
fb.addEventListener('login', function(e) {
if (e.success) {
Cloud.SocialIntegrations.externalAccountLogin({
type : 'facebook',
token : fb.accessToken
}, function(e) {
if (e.success) {
var user = e.users[0];
Cloud.PhotoCollections.create({
name : 'Party Pictures'
}, function(e) {
if (e.success) {
var collection = e.collections[0];
alert('Success:\n' + 'id: ' + collection.id + '\n' + 'name: ' + collection.name + '\n' + 'count: ' + collection.counts.total_photos + '\n' + 'updated_at: ' + collection.updated_at);
} else {
alert('Error:\n' + ((e.error && e.message) || JSON.stringify(e)));
}
});
} else {
alert('Error: ' + ((e.error && e.message) || JSON.stringify(e)));
}
});
}
})) 结果表明,多篇在线帖子在执行此操作所需的服务器配置方面存在错误。确保您的“用户身份验证方案”设置为“API服务器”,而不是“授权服务器”。事实证明,这对我来说很简单。我也遇到了同样的问题,但是对于键值对。我还将整合照片收藏,我觉得这一切都是相关的。所以如果有人能帮忙,请帮我。