Dan*_*yKK 12

您可以使用图形api来获取相册中的图像,如下所示:https: //graph.facebook.com/ALBUM_ID/photos 您将获得一个包含该相册中所有图像的数组.该数组包含如下对象:

"name": "hopes you're having a great weekend!",
         "picture": "http://photos-d.ak.fbcdn.net/hphotos-ak-snc1/5370_127826373305_40796308305_2373079_2781005_s.jpg",
         "source": "http://a4.sphotos.ak.fbcdn.net/hphotos-ak-snc1/5370_127826373305_40796308305_2373079_2781005_n.jpg",
         "height": 604,
         "width": 427,
         "images": [
            {
               "height": 604,
               "width": 427,
               "source": "http://a4.sphotos.ak.fbcdn.net/hphotos-ak-snc1/5370_127826373305_40796308305_2373079_2781005_n.jpg"
            },
            {
               "height": 254,
               "width": 180,
               "source": "http://photos-d.ak.fbcdn.net/hphotos-ak-snc1/5370_127826373305_40796308305_2373079_2781005_a.jpg"
            },
            {
               "height": 130,
               "width": 91,
               "source": "http://photos-d.ak.fbcdn.net/hphotos-ak-snc1/5370_127826373305_40796308305_2373079_2781005_s.jpg"
            },
            {
               "height": 106,
               "width": 75,
               "source": "http://photos-d.ak.fbcdn.net/hphotos-ak-snc1/5370_127826373305_40796308305_2373079_2781005_t.jpg"
            }
         ],
Run Code Online (Sandbox Code Playgroud)

这是api文档中的一个示例.您可以直接使用这些图片链接,Facebook甚至为您提供不同的图库大小.祝好运.

  • 是的,这是可能的. (3认同)

Fla*_*ask 7

是的可能:这是一个Graph的例子:

照片:https://graph.facebook.com/98423808305(来自可口可乐公司的照片)

相册:https://graph.facebook.com/99394368305(可口可乐的壁纸照片)