1

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など。

ありがとう、リノジョーンズ

4

1 に答える 1

1

アルバムにある画像を必要なサイズで取得する方法はありますか? 例: 150x120 または 190x210 など。

いいえ、できません。Facebook から提供された写真のいずれかを使用する必要があります。

于 2012-11-25T09:16:12.090 に答える