我目前使用Hello.js建立与Flickr的连接并从那里获取相册;但是,通过错误对象收到的响应是"User Not Found"
。我不完全知道什么我缺少这里:Hello.js - 获取Flickr相册并授权失败
hello.init(CLIENT_IDS_ALL, {
scope: "files, photos",
redirect_uri : "/dashboard",
oauth_proxy : OAUTH_PROXY_URL
});
function getAlbums(network){
hello(network).login({
force:true
},function(auth){
hello.api(network+':me/albums', function(r){
if(!r||r.error) {
// Caught here: "User Not Found"
message(list, "Error: " + r.error.message);
return;
}
else if(!r.data||r.data.length===0){
message(list, "There are no albums in this user's account.");
return
}
});
});
}
我检查的配置为Flickr API和所有的好:关键是正确的,向公众开放的应用程序已启用。下面是我的应用程序的API调用的统计信息,显然没有得到用户认证:
Number of authenticated users: 0
Total calls in the last hour: 0
Total calls in the last 24 hours: 5
什么是可能的错误因为我已在这里?相同的代码用于Facebook身份验证和照片检索,但它工作正常,所以可能不是那样做的代码。
在你的代码中,没有什么特别的flickr。您是否期望Facebook上的代码能够在flickr上工作?很不幸的是,不行。看看https://www.flickr.com/services/api/ – mb21 2014-10-28 13:51:04
我认为Hello.js确实统一了API调用,该代码适用于我指定的任意数量的社交网络。我只是不知道为什么Flickr发生错误,显然配置有问题,但我似乎无法找到。 – user3583721 2014-10-28 13:57:23