我找不到任何答案:我想获取我所有 Facebook 专辑的 fbid,但唯一的方法是解析此 FQL 查询的参数“链接”,如您在此处看到的:
var query = {
"query1": 'select link,photo_count from album where owner = me() and photo_count>0',
"query2": 'select "" from photo_tag where subject = me()'
};
FB.api('/fql', {
'q': query
}, function (response) {
var albums = response.data[0].fql_result_set;
var tagged_count = response.data[1].fql_result_set.length;
var albumsInfo = [];
$(albums).each(function (index, value) {
if (value.link === null) return;
albumsInfo.push({
id: value.link.replace(/.*fbid=([0-9]+)&id=.*&aid=.*/g, "$1"),
count: value.photo_count
});
});
albumsInfo.push({
id: "tagged",
count: tagged_count
});
if ($.isFunction(success)) success(albumsInfo);
});
有没有办法在没有图形 api 的情况下直接获取 fbid?