php – 获取facebook缩略图个人资料图片

有谁知道如何使用 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;

      });
    }
  }
});

不确定如何获取缩略图/头像大小.像50×50大小的东西

您也可以使用< img>使用特殊URL标记以执行相同的操作:
<img src="http://graph.facebook.com/<UID>/picture?type=square" />

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...