Friends list

1 view
Skip to first unread message

Richard

unread,
Apr 28, 2008, 8:49:47 AM4/28/08
to Twitter Development Talk
I am trying to get a list of all of the friends of a user which is
fine for 100 friends since that is on the first page. However if the
user has lots of friends I have to do multiple requests and I am
concerned that twitter may block us for doing this.

For instance getting the friends of Robert Scoble requires about 180
requests:
http://twitter.com/statuses/friends/scobleizer.xml
This is manageable the first time, though I still need to re-get this
to look for people who have been added to the list which currently
involves doing all these requests again.

Could I suggest a since parameter that just lists friends that have
been added or their picture or name has been changed since a
particular date. Also I guess there would need also to be a method for
listing friends that have been removed since a particular date.

Also knowing the number of friends or pages in the list in the first
result would aid getting pages in parallel.
--
Richard
friendbinder.com

Barry Hess

unread,
Apr 28, 2008, 9:30:42 AM4/28/08
to twitter-deve...@googlegroups.com
+1 for "friends since".  Would be useful if a user is "auto-following" another user for the purpose of sending automatic replies.

~Barry Hess
--
Barry Hess
http://blog.bjhess.com
http://www.scrawlers.com
http://getharvest.com

Jesse Stay

unread,
Apr 28, 2008, 1:30:34 PM4/28/08
to twitter-deve...@googlegroups.com
+1 here too - I've been forced to only run my auto-follow script once a day since I have some big A-listers on there.  Twitter would have much fewer API requests and server hits if they could enable this.

Jesse
--
Jesse Stay
The "Social" Geek

CEO, Founder, Consultant: Stay N' Alive Productions, LLC
Author: O'Reilly's FBML Essentials http://www.amazon.com/FBML-Essentials-Jesse-Stay/dp/0596519184/
Co-Author: I'm on Facebook -- Now What??? http://www.amazon.com/Im-Facebook-Now-What-Personal-Professional/dp/1600050956/

Blogger:

http://StayNAlive.com
http://OpensocialNow.com
http://FacebookAdvice.com

Phone: (801) 853-8339

Alex Payne

unread,
Apr 28, 2008, 9:08:16 PM4/28/08
to twitter-deve...@googlegroups.com
We'll support "since" for friends, sure. We can also hand-enable
auto-following for accounts that are bots or otherwise useful,
non-spammy services.

--
Alex Payne
http://twitter.com/al3x

Alex Popescu

unread,
Apr 29, 2008, 4:49:43 PM4/29/08
to Twitter Development Talk
On Apr 29, 4:08 am, "Alex Payne" <a...@twitter.com> wrote:
> We'll support "since" for friends, sure.  We can also hand-enable
> auto-following for accounts that are bots or otherwise useful,
> non-spammy services.
>

Before supporting the since parameter a simpler solution might be to
return the friends in reversed chronological order (the latest added
being the first). This way API users will not have to pass through all
the friends pages, but rather stop at the first existing one.

Indeed since is a better option long term.

cheers,

./alex
--
.w( the_mindstorm )p.
Alexandru Popescu
> >http://www.amazon.com/Im-Facebook-Now-What-Personal-Professional/dp/1...

Richard

unread,
Apr 29, 2008, 5:34:59 PM4/29/08
to Twitter Development Talk
Either the since parameter or the sorting option by added date would
work for me.

--
Richard
friendbinder.com

Richard

unread,
Apr 30, 2008, 8:59:18 AM4/30/08
to Twitter Development Talk
I see this in "The next batch of API improvements has
arrived!" (http://groups.google.com/group/twitter-development-talk/
browse_thread/thread/722b8cb5925563de)
[FIXED] /statuses/friends now support since and If-Modified-Since.
and this is in the documentation now, which I assume is the solution
to what we are talking about (thanks for the quick turn around!)

I can't get this to work however,
http://twitter.com/statuses/friends/friendbinder.xml?since=Wed,+30+Apr+2008+12:41:00+GMT
should show an empty list but instead seems to show quite a few
friends and seems to repeat it's self

and
http://twitter.com/statuses/friends/scobleizer.xml?since=Wed,+30+Apr+2008+12:41:00+GMT
is nothing but repeats of the same person (user id: 12)

--
Richard
@friendbinder

Alex Payne

unread,
Apr 30, 2008, 3:28:05 PM4/30/08
to twitter-deve...@googlegroups.com
I'll take a look at that possible bug. Thanks!

--
Alex Payne
http://twitter.com/al3x

Jesse Stay

unread,
Apr 30, 2008, 4:37:28 PM4/30/08
to twitter-deve...@googlegroups.com
Alex - thanks a ton for implementing this.  This will reduce a huge strain in my development now, and reduce the requests I'm making back to Twitter now.

Jesse
--
Jesse Stay
The "Social" Geek

CEO, Founder, Consultant: Stay N' Alive Productions, LLC
Author: O'Reilly's FBML Essentials http://www.amazon.com/FBML-Essentials-Jesse-Stay/dp/0596519184/
Co-Author: I'm on Facebook -- Now What??? http://www.amazon.com/Im-Facebook-Now-What-Personal-Professional/dp/1600050956/

Jesse Stay

unread,
May 8, 2008, 10:03:38 PM5/8/08
to twitter-deve...@googlegroups.com
Is it possible to do the same thing for "followers", or at least order them so the most recent followers come first?

Thanks,

Jesse

Alex Payne

unread,
May 8, 2008, 10:31:56 PM5/8/08
to twitter-deve...@googlegroups.com
Should be!

Jesse Stay

unread,
May 8, 2008, 11:38:42 PM5/8/08
to twitter-deve...@googlegroups.com
Any idea when that will be enabled?  Right now if I do:

http://twitter.com/statuses/followers.xml?page=1&lite=true&since=Thu%2C%2001%20Jan%201970%2000%3A33%3A28%20GMT

It returns null.

Thanks,

Jesse

Alex Payne

unread,
May 9, 2008, 1:14:15 AM5/9/08
to twitter-deve...@googlegroups.com
Hopefully deployed this coming Tuesday.

Jesse Stay

unread,
May 14, 2008, 1:39:08 AM5/14/08
to twitter-deve...@googlegroups.com
Just checking to see what the status was on this - was this deployed today?

Thanks!

Jesse

Alex Payne

unread,
May 14, 2008, 6:06:14 PM5/14/08
to twitter-deve...@googlegroups.com
No, we had some issues come up that took priority over this fix. Soon, though!

Alex Popescu

unread,
May 15, 2008, 11:40:43 AM5/15/08
to Twitter Development Talk
On May 15, 1:06 am, "Alex Payne" <a...@twitter.com> wrote:
> No, we had some issues come up that took priority over this fix.  Soon, though!
>

Thanks Alex. I would also like to point out the the implementation of
Friends API seems broken too and the 2 parameters (lite and page are
just ignored).

The following requests are returning the exact the same results:

curl -u <credentials> http://twitter.com/statuses/friends.json?page=1
curl -u <credentials> http://twitter.com/statuses/friends.json?page=3
curl -u <credentials> http://twitter.com/statuses/friends.json?page=1&lite=true
curl -u <credentials> http://twitter.com/statuses/friends.json?page=2&lite=true

Adam Boettiger

unread,
May 15, 2008, 11:45:25 AM5/15/08
to twitter-deve...@googlegroups.com
What's the best way to submit a feature request for upcoming builds?
Reply all
Reply to author
Forward
0 new messages