What do you mean by populate friend?
It looks like your code should mostly work. One issue is the while loop will
never end because next_cursor returns 0 when there are no more results which
is greater then -1.
Abraham
-
Abraham Williams | Hacker Advocate | abrah.am
@abraham
dear friend,
need helpp, :)... im nubiiee in here
i want get all friend list, and i confuse how to pupulate friend from
paging..
this my code:
$cursor = -1;
if($cursor == -1 ){
$followers = $connection-get('statuses/friends',
array('id' =
$getUserId[0]
You are using 'statuses/friends'. That requires OAuth, only returns
100 results at a time, and also returns the most recent tweet for each
user. That is slow, bulky, and quickly gets rate limited.
I use 'friends/ids', if all I need is a list of all friends. That
doesn't need any authentication