Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I integrate Facebook photo album into website? [duplicate]

Possible Duplicate:
Facebook Api - how to access my photo album

How can I display photos from a Facebook album inside a website?

like image 819
Nicekiwi Avatar asked Apr 29 '11 07:04

Nicekiwi


2 Answers

You can use the graph api to get the images in an album, like this: https://graph.facebook.com/ALBUM_ID/photos You get an array containing all the images in that album. The array contains objects like this:

"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"
            }
         ],

This is an example from the api documentation. You can use these image links directly, facebook even gives you different sizes for the gallery. Good luck.

like image 149
DannyKK Avatar answered Sep 28 '22 10:09

DannyKK


yes its possible: Here an example with Graph:

Photos: https://graph.facebook.com/98423808305 (A photo from the Coca-Cola page)

Photo albums: https://graph.facebook.com/99394368305 (Coca-Cola's wall photos)

like image 23
Flask Avatar answered Sep 28 '22 10:09

Flask