【发布时间】:2011-08-11 22:20:46
【问题描述】:
有谁知道我如何使用 javascript sdk 获取 facebook 用户的缩略图/头像?
我知道要获得完整尺寸的图片,我可以执行以下操作:
//Get a list of all the albums
FB.api('/me/albums', function (response) {
for (album in response.data) {
// Find the Profile Picture album
if (response.data[album].name == "Profile Pictures") {
// Get a list of all photos in that album.
FB.api(response.data[album].id + "/photos", function(response) {
//The image link
image = response.data[0].images[0].source;
});
}
}
});
不确定如何获取缩略图/头像大小。像 50x50 大小的东西
【问题讨论】:
-
这些方法没有 API 速率限制吗?我听说每 600 秒大约有 600 个请求,这是不可扩展的。有没有更好的方法?
-
也在想同样的事情
标签: php javascript facebook facebook-javascript-sdk