如何使用facebook android sdk获取每张facebook专辑的封面照片

时间:2012-11-23 12:24:49

标签: facebook-graph-api cover

我使用facebook android sdk访问facebook专辑。我有包含所有专辑对象的json。想要获得每张专辑的封面照片。 这是对象:

 "id": "3486732467234",
 "from": {
    "name": "Persons Name",
    "id": "Persons ID"
 },
 "name": "Vacation",
 "location": "City",
 "link": "https://www.facebook.com/album.php?fbid=434235&id=324343&aid=2430",
 "cover_photo": "3489234432",
 "privacy": "everyone",
 "count": 60,
 "type": "normal",
 "created_time": "2007-06-03T23:01:16+0000",
 "updated_time": "2011-03-18T19:46:43+0000",
 "can_upload": true

}  如何使用此值“cover_photo”获取cover_photo图像:“3489234432”? 我能够在字符串中获取此值..

由于

1 个答案:

答案 0 :(得分:0)

只需通过photoID索取照片信息,请使用此API:

 https://graph.facebook.com/photoID

不要忘记access_token