how to display photos with the album using facbook graph api php sdk?

Lemonsaresour

New Member
\[code\]$albums = $facebook->api('/me/albums?fields=link');foreach ($albums["data"] as $album) { $facebook_photos = file_get_contents("https://graph.facebook.com/".$album['id']."/photos?type=album&access_token=".$token.""); $photos = $facebook->api("/{$album['id']}/photos"); foreach($photos['data'] as $photo) { echo "<img src='http://stackoverflow.com/questions/10295772/{$photo['source']}' />", "<br />"; }}\[/code\]this code is displaying me all the photos that r belong to all albums.but i want to display albums with cover photo , then on click of album , just want to show photo belong to that album
 
Top