Hi Dwain, sorry for late reply.
Unlucky I am not a very good programmer and a friend of mine helped me.
Here is the code she attached to your own code:
At the end of fbasstylkes.CSS there’s
.fbalbum_thumb_row { width: 100%; text-align: center; }
.fbalbum_thumb { display: inline-block; width: 20%; margin: 0 1em 1em; vertical-align: top; }
.fbalbum_thumb img { height: 120px; margin: 0; max-width: 160px; margin-bottom: 0.5em;}
The album.PHP is:
<?php
$fb_albums = file_get_contents(‘https://graph.facebook.com/WestandFriends/albums/?fields=id,name,type&limit=2000’);
$json = json_decode($fb_albums);
$i = 0;
echo ‘<div class=”fbalbum_thumb_row”>’;
foreach($json->data as $item) {
if ($item->type == ‘normal’) {
if ($i <= 3) {
echo ‘<div class=”fbalbum_thumb”>id.'”><img src=”https://graph.facebook.com/’ . $item->id . ‘/picture”>
‘;
echo ” . $item->name . ‘</div>’;
$i++;
}
else {
echo ‘</div> <!– .fbalbum_thumb_row –>’;
echo ‘<div class=”fbalbum_thumb_row”>’;
$i = 0;
}
}
}
echo ‘</div> <!– .fbalbum_thumb_row –>’;
?>