- Get user's posts
will return
{
"posts": {
"data": [
{
"id": {id},
"type": {type},
"message": {message},
"created_time": {created_time},
"attachments": {
"data": [
{
"subattachments": {
"data": [
{
"description": "#test",
"media": {
"image": {
"height": {photo_height},
"src": {photo_url},
"width": {photo_width}
}
},
"target": {
"id": {photo_id},
"url": {photo_fb_url}
},
"type": "photo",
"url": {photo_fb_url}
}
]
},
"target": {
"id": {post_id},
"url": {post_fb_url}
},
"title": {post_title},
"type": "album",
"url": {post_fb_url}
}
]
}
},
...
],
"paging": {
"previous": {previous-url},
"next": {next-url}
}
},
"id": {user-id}
}
collection posts["data"][]["attachments"]["data"][]["subattachments"]["data"][]["media"]["image"]["src"]
download photos by src
- Get user's albums
https://graph.facebook.com/me/albums?fields=name,id,updated_time&access_token={access_token}
will return
"data": [
{
"name": "Timeline Photos",
"id": {album_id},
"updated_time": {updated_time}
},
{
"name": "Mobile Uploads",
"id": {album_id},
"updated_time": {updated_time}
},
...
]
}
Find album_id where "name": "Timeline Photos"
- Get photos from album
will return
{
"photos": {
"data": [
{
"created_time": {created_time},
"name": "#test",
"id": {photo_id},
"updated_time": {updated_time}
},
{
"created_time": {created_time},
"id": {photo_id},
"updated_time": {updated_time}
}
],
},
"id": {album_id}
}
collection photo_id
https://graph.facebook.com/{photo_id}/picture?access_token={access_token}
will return
{
"data": {
"is_silhouette": false,
"url": "some-image-url"
}
}
download it by url