【问题标题】:Images of Custom Height Width - Facebook Graph API (Albums/photos)自定义高度宽度的图像 - Facebook Graph API(相册/照片)
【发布时间】:2012-11-25 06:44:52
【问题描述】:

我正在尝试使用 Graph API 从我在 facebook 上的相册中提取图像,并且我能够这样做。

使用调用 - graph.facebook.com/albumID/photos

上面的调用响应了我需要的所有数据,它响应了各种大小的所有图像的 URL:

 {
      "picture": "URL Here",
      "source": "URL Here",
      "height": 540,
      "width": 720,
      "images": [
        {
          "height": 972,
          "width": 1296,
          "source": "URL Here"
        },
        {
          "height": 720,
          "width": 960,
          "source": "URL Here"
        },
        {
          "height": 540,
          "width": 720,
          "source": "URL Here"
        },
        {
          "height": 450,
          "width": 600,
          "source": "URL Here"
        },
        {
          "height": 360,
          "width": 480,
          "source": "URL Here"
        },
        {
          "height": 240,
          "width": 320,
          "source": "URL Here"
        },
        {
          "height": 135,
          "width": 180,
          "source": "URL Here"
        },
        {
          "height": 97,
          "width": 130,
          "source": "URL Here"
        },
        {
          "height": 97,
          "width": 130,
          "source": "URL Here"
        }
      ],

有没有一种方法可以让我获得我相册中的图片,我想要的大小?例如:150x120 或 190x210 等。

谢谢, 雷诺·琼斯

【问题讨论】:

    标签: facebook facebook-graph-api


    【解决方案1】:

    有没有一种方法可以用来获取我的图像 专辑,我想要的大小?例如:150x120 或 190x210 等。

    ,这是不可能的。您必须使用 Facebook 提供的其中一张照片。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-12-15
      • 1970-01-01
      • 2018-07-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多