Eelke Sietse
Eelke Sietse

Reputation: 79

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.

Upvotes: 0

Views: 308

Answers (2)

Eelke Sietse
Eelke Sietse

Reputation: 79

I eventually solved this by saving the entire image collection of a facebook user in the app's database and querying them SORT BY datetime.

Upvotes: 0

Niraj Shah
Niraj Shah

Reputation: 15457

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...

Upvotes: 0

Related Questions