Quote: $this->data['friends'] = $this->facebook->api('/me/friends?limit=5000');
echo '<ol>'; foreach ($friends["data"] as $value) { echo '<li>'; //friends id echo 'friend id'.$value["id"]; echo '<div class="pic">'; //friends link and friends pic echo '<a href="https://facebook.com/' . $value["id"] .'"/>'.'<img src="https://graph.facebook.com/' . $value["id"] . '/picture"/>'."</a>"; echo '</div>'; // friends name echo '<div class="picName">'.$value["name"].'</div>'; echo '</li>'; } echo '</ol>';
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)