Project

General

Profile

Feature #299

fullname on tweet

Added by Robert Ivens almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Start date:
05/14/2011
Due date:
% Done:

0%

Estimated time:
Browser (if web client):

Description

Is it possible (without an extra call) to also get the full name of the user and the retweeted user. Right now only the screen name is returned.

History

#1

Updated by Patrick Talbot almost 13 years ago

  • Status changed from New to Closed

Tweet.getUser() Tweet.getRetweetedUser() and Message.getUser() now return a Profile object.

Conveniently Profile.toString() returns the screen name, so this will not break anything.
But once you get a hold of a Profile, it's easy to get it's properties. In you case getFullName() on the returned Profile.
See the sample solution that I updated to take advantage of this, although the previous version was still working.

Please note though that there is no guarantee that the Profile returned will be fully filled.
Twitter might only return a few fields to define a user and not all his profile's preference, etc...

Also available in: Atom PDF