How to tell an item is a re-tweet?

21 views
Skip to first unread message

Matei

unread,
Sep 20, 2010, 2:01:09 PM9/20/10
to Twitter Development Talk
Hi all,

I'm trying to implement similar functionality to the home timeline on
twitter where re-tweets appear as such and you have the option of
undoing it. The trouble is I cannot tell if a status is a re-tweet or
not. Statuses on the home timeline appear to include a re-tweeted
parameter but it is always false regardless of the fact I've re-
tweeted that item. Can anybody offer some insight on how to do this?

Cheers,
Matei

Matei

unread,
Sep 20, 2010, 4:55:11 PM9/20/10
to Twitter Development Talk
Actually, allow me to re-phrase that: how do I know if I've re-tweeted
an item? I would like to prevent users from re-tweeting the same
status multiple time. So similar to the home timeline on twitter where
they have the Undo functionality for re-tweets. Sorry if I caused any
confusion...

Cheers,
Matei

tm0054

unread,
Sep 28, 2010, 4:22:13 PM9/28/10
to Twitter Development Talk
UPDATE:

I found this page that would indicate that the retweet field is
currently disabled and suggests another way to see if something has
been retweeted:

http://www.devcomments.com/retweeted-variable-in-home-timeline-at288280.htm

tm0054

unread,
Sep 28, 2010, 4:18:24 PM9/28/10
to Twitter Development Talk
I'm wondering the exact same thing. One would thing the 'retweet'
field would indicate this but it is false all the time for me too
regardless if a post has been retweeted or not. It would be very
confusing to the end user if they still have the ability to retweet a
post that they've already retweeted.

On Sep 20, 2:01 pm, Matei <mad.doroba...@gmail.com> wrote:

goodsanket

unread,
Oct 27, 2010, 2:33:41 AM10/27/10
to Twitter Development Talk
I am having the exact same problem. First of all home_timeline method
does not include retweets made by you and on top of that it does not
include whether a particular tweet has been retweeted or not. It is
confusion for the end user.

User will try to retweet and he will get a error message. But it will
better if user knows whether he can retweet a particular tweet or not

Matt Harris

unread,
Oct 28, 2010, 8:26:32 PM10/28/10
to twitter-deve...@googlegroups.com
Hi everyone,

Whilst the retweet_count is generally returned along with statuses, the retweeted datapoint remains false. Instead it is recommended developers include the include_my_retweet=1 parameter when requesting timelines.

The include_my_retweet parameter will cause a new datapoint "current_user_retweet" to be included in the status if the current user has retweeted it. This datapoint contains the status ID of the retweet the authenticating user created. This is the status ID to destroy if you wish to undo the retweet.

Example:
    "current_user_retweet": {
      "id": 26815871309
    },

I hope that helps,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


--
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: http://groups.google.com/group/twitter-development-talk

Reply all
Reply to author
Forward
0 new messages