roll up twitter conversations

10 views
Skip to first unread message

vonnegut_fan

unread,
Dec 23, 2008, 2:07:03 PM12/23/08
to Twitter Development Talk
Hello,
I am building a third party twitter app and want to show tweets in
"conversations", meaning if a tweet is a reply, I display those the
same way that search.twitter.com displays conversations, with the
reply beneath.

I just wanted to ask before I start from scratch if there is a semi-
standard approach people are following to achieve this. I noticed in
twitter they use the "thread" URL schema, but when I look at that, it
comes across as HTML, not as XML.

But any advice you have would be greatly appreciated.

Thanks,
Peter

Alex Payne

unread,
Dec 23, 2008, 6:37:33 PM12/23/08
to twitter-deve...@googlegroups.com
We don't have an official way of retrieving a conversation just yet,
but it's our list.

--
Alex Payne - API Lead, Twitter, Inc.
http://twitter.com/al3x

JakeS

unread,
Dec 23, 2008, 11:46:52 PM12/23/08
to Twitter Development Talk
My application currently does it by looking at the
in_reply_to_status_id on the current status, then calling
http://twitter.com//statuses/show/WHATEVERTHATIDWAS.xml to get that
status. If that one has a in_reply_to_status_id, it fetches that
one. It keeps going until it reaches a status without it.

Shahid Faiz

unread,
Dec 24, 2008, 1:19:41 AM12/24/08
to twitter-deve...@googlegroups.com
Nice approach to get conversations. What you do if that status is from protected profile and that person is not friend? What about results returned from search, I think these results don't have in_reply_to_status_id?

Thanks,
Shahid

JakeS

unread,
Dec 24, 2008, 8:22:09 AM12/24/08
to Twitter Development Talk
If it reaches a protected status, it obviously cannot proceed fetching
more of the conversation. You may want to provide some sort of
indicator of that if your UI allows it.

And no, the search api sadly doesn't contain the in_reply_to_status_id
field. My UI only shows the "Show Conversation" menu item if that
field is available, so it's just not an option when showing search
results. I really hope they add it to the search API soon -- it would
allow me to do a search for anything @SomeoneWhoAskedAQuestion and
pick out other people's answers, which would be very useful.

On Dec 24, 12:19 am, "Shahid Faiz" <shahid.f...@gmail.com> wrote:
> Nice approach to get conversations. What you do if that status is from
> protected profile and that person is not friend? What about results returned
> from search, I think these results don't have in_reply_to_status_id?
>
> Thanks,
> Shahid
>
> On Wed, Dec 24, 2008 at 9:46 AM, JakeS <jakesteven...@gmail.com> wrote:
>
> > My application currently does it by looking at the
> > in_reply_to_status_id on the current status, then calling
> >http://twitter.com//statuses/show/WHATEVERTHATIDWAS.xmlto get that

twonvo.com

unread,
Jan 9, 2009, 9:40:33 AM1/9/09
to Twitter Development Talk
i have a ready made one : http://www.twonvo.com - is this what you
were thinking of?
Reply all
Reply to author
Forward
0 new messages