facebookfacebook-opengraphphoto

Creating a Photo Stream


I want to use the graph api to create a photostream of all the users friends photo's. How do you create a thing like that using the graph api. I guess in essence I want to create a chronological photo album of all my friends photos.

How should I go about accomplishing this.


Solution

  • You should start by getting the user's friends using /me/friends. Then you can cycle through the list of friends and get their photos like:

    <img src="http://graph.facebook.com/{friend_id}/picture" />

    You can use a JavaScript library to do the animation...