Click here to Skip to main content
15,867,756 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hi 2all i have used that code to return user friends data

but not return all friends

Quote:
$this->data['friends'] = $this->facebook->api('/me/friends?limit=5000');
in my controller



and in my view

XML
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>';


i have 152 friend it only return 146
how to return all users ??
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900