My favorites | Sign in
Project Logo
       
New issue | Search
for
| Advanced search | Search tips
Issue 265: Enhancement - Optionally return username from new social graph API methods
54 people starred this issue and may be notified of changes. Back to list
Status:  WontFix
Owner:  ----
Closed:  Feb 2009
Type-Enhancement
Priority-Medium


Sign in to add a comment
 
Reported by dpreto, Feb 04, 2009
I can cut my API calls by more than 70% if I have the option on the Social
Graph followers and friends methods to get a list of screen names instead
of ids.

Perhaps you could add a parameter like &screen_name, which will return the
screen names instead of the ids.

As it is now, with the ids, I need to make an API call for each entry
returned just to get the screen name, because I need to use that if I want
to give my user a link to check out the new follower's profile on the
Twitter web interface.
Comment 1 by m...@twitter.com, Feb 05, 2009
Triage: Fixing type
Labels: -Type-Defect Type-Enhancement
Comment 2 by DossyNJ, Feb 05, 2009
+1 - I'd like to see screen names and IDs.
Comment 3 by dpreto, Feb 05, 2009
Important: Please do not change the default behavior of the method. I have a live
system running on those methods now and it will cause a big mess if you change the
default behavior of returning a list of ids.

To return screen names, please add it as a selectable option.

Someone else here wanted screen names and ids. Perhaps that could be a third option.
Comment 4 by btanweer, Feb 05, 2009
I would appreciate username along with userid
Comment 5 by 246tnt, Feb 05, 2009
Please not _instead_of_   I use only ID and also, don't change the return value by default, we have running system 
using this new API.

Comment 6 by davidmok, Feb 06, 2009
Agree with this request, include screennames with IDs as an optional field that can 
be request in the method call
Comment 7 by portalcap, Feb 06, 2009
+1 for this, it's not technically necessary for me for the moment, but it would allow
me to give my users those links for new followers, which would be nice.
Comment 8 by pjennings, Feb 09, 2009
+1 for adding usernames as well as IDs
Comment 9 by se...@dds.nl, Feb 11, 2009
+1 I would also like name and screenname added to the IDs. This will decrease API
calls very much
Comment 10 by m...@twitter.com, Feb 11, 2009
Updated the summary to reflect what the change is rather than how much it is needed.
Still discussing internally.
Summary: Enhancement - Optionally return username from new social graph API methods
Comment 11 by mariaeves, Feb 17, 2009
user name & user id - still adjusting to use the system.
Comment 12 by alexfpayne, Feb 18, 2009
Adding in usernames ruins the performance of these API methods. As they are, we fetch data from a single data 
store in our architecture to return the lists of IDs. In order to provide usernames, we'd have to bog down this 
request by joining together multiple sources of data.
Status: WontFix
Comment 13 by igudo1, Apr 02, 2009
 Issue 348  has been merged into this issue.
Comment 14 by igudo1, Apr 27, 2009
 Issue 519  has been merged into this issue.
Comment 15 by mattpat1031, Apr 27, 2009
So what you're saying is that you'd rather have me send you 500 requests to reproduce this myself than one 
somewhat slow request? Relational databases are designed to fetch large quantities of information very quickly; I 
find it difficult to comprehend what makes this so impossible.
Comment 16 by dpreto, Apr 27, 2009
Alex, sorry, I only now saw your reply from Feb 18.

Perhaps we then need to take a different approach.

I have a need to a very light-weight method to convert the <id> to the corresponding
<screen_name>. Retrieving the full user profile to do this is a complete overkill,
and consumes far more bandwidth that necessary.

In other words, I need something like /users/convert.xml?id=id and
/users/convert.xml?screen_name=screen_name.

Comment 17 by jhalterman, May 06, 2009
Why not just add the usernames to the denormalized data up front? No need for a data
join on each request.
Comment 18 by dgeller, May 08, 2009
One way or another, there needs to be an easy, *cheap* way to convert ids to
usernames (and vice-versa). It is great that you can get 5000 ids per request, but if
you cannot easily get the screen names for these, things get complicated as well as
api-intensive.
Comment 19 by dgeller, May 25, 2009
Is the "status = WontFix" final? 

Perhaps the folks at twitter are willing to reconsider adding api call(s) to
bulk-translate between screen_names and ids. In certain circumstances, this would be
extremely useful, and would cut down on a lot of calls made simply to obtain this
translation (as mentioned by several above).


Comment 20 by Hisham.H.Younis, Jul 17, 2009
Together with the Search API having different ids, this is becoming really annoying.
Please fix asap.
Comment 21 by 4braham, Jul 22, 2009
Adding link from the wiki: http://groups.google.com/group/twitter-development-
talk/browse_frm/thread/98f4c4d13954e8bf/4b511a0455f8bffe?
lnk=gst&q=social+graph+screen+name#4b511a0455f8bffe
Comment 22 by msteuer, Sep 05, 2009
I know there's been a ton of request for a followers/screen_names API,   
or a friends/screen_names one for that matter. Right now the only way   
of getting all of a user's followers is with http://twitter.com/followers/ids.xml 
  and that only renders the id's. There's no efficient way of getting   
the associated screen_names without doing hundreds/thousands/millions   
of calls or running into API rate limits. Twitter has rejected the   
creation of a followers/screen_names API due to "performance issues/ 
concerns". What if I or you want to present our app users with a human   
readable list of their followers/friends. I believe the alternative is   
a much more performance heavy approach for Twitter. What's to stop me   
from creating a 1000 (or more) unique users that my app/service uses   
to resolve id's into screen_names? That way I would have hundreds of   
thousands of API calls available each hour and could easily create a   
locally cached db of id-to-screen_name pairs. And of course I would   
have to recheck all of them every few days or so to account for   
screen_name changes, since there isn't an API for that either. All of   
this would result in millions of API calls a day, just to do something   
that Twitter could enable with one simple API... Hell, I could   
register a hundred thousand users, and create a service that maintains   
an id-to-screen_name pair db for Twitter's entire userbase and make it   
available to the dev community as a service to work around this   
issue... What do you think? Wouldn't it be much easier and beneficial   
to Twitter to enable this simple API that many of us have been asking   
for for so long now? 
I look forward to you thoughts... 
Michael 
Comment 23 by drewsonix, Sep 15, 2009
I do remember the discussion a while back about this being unlikely to happen.

I just wonder how is everyone else getting around the lack of such a function?

If the only way right now is to pull pages & pages of statuses/friends or /followers
I would have imagined it's quite a hit on the servers.
Sign in to add a comment

Hosted by Google Code