Modify

#600 closed defect (fixed)

Twitter: on signon, get friends/followers

Reported by: ilf@… Owned by: geert
Priority: normal Milestone:
Component: Twitter Version: 1.2.6
Keywords: Cc:
IRC client+version: Client-independent Operating System: Public server
OS version/distro:

Description

I think Twitter should get all friends and followers on signon, not just when a Tweet by them is received.

So, on signon, just poll http://dev.twitter.com/doc/get/followers/ids once.

Attachments (0)

Change History (10)

comment:1 Changed at 2010-06-24T00:50:18Z by wilmer

Resolution: fixed
Status: newclosed

That API call returns just numeric user IDs, so not very useful.

But see changeset:devel,598. This is now done, and for extra niceness it's done before joining you to the &twitter channel so you won't see a join flood but everyone immediately in /names.

comment:2 Changed at 2010-06-24T09:12:52Z by ilf

Yay, this rocks. Happy birthday, too :)

comment:3 Changed at 2010-06-28T09:36:34Z by ilf

Still experiencing weirdnesses on this with bzr-devel-600. After "Getting contact list" and "Getting initial statuses", I have 102 nicks in my Twitter channel. But I am following almost 300 accounts, so some still join only when they post something.

I haven't looked at the code, but this sounds to me like something with the "100 people" condition of http://code.bitlbee.org/lh/bitlbee/revision/600

comment:4 Changed at 2010-06-29T23:33:11Z by wilmer

Ah, interesting one. The "cursor" is a 64-bit integer, the code only used a 32-bit signed integer and ended up with negative values, thinking it hit the end of the list already.

Note that I tested this using the BitlBee account by listing followers instead of following. I don't have access to any Twitter account that follows >100 people. Please let me know how this works, in my test I still didn't seem to get a full list. Oddly enough, Twitter says I hit the end of the list.

changeset:devel,602

comment:5 Changed at 2010-06-30T11:12:51Z by ilf

Still doesn't work, 102 nicks again with bzr-devel-602.

comment:6 Changed at 2010-06-30T19:52:26Z by ilf

Another restart and I have 202 nicks at join. But still not all :)

comment:7 Changed at 2010-06-30T22:32:59Z by wilmer

It starts to look like Twitter's fault to me. Whenever I try to fetch any list containing more than 200 items, the second 100-item list claims to be the end of the list. (next_cursor=0) Not sure what to do here.

comment:8 Changed at 2010-06-30T22:36:40Z by wilmer

WTF, if I do the same thing on the command line, I get the full list. Stupid Twitter. :-(

comment:9 Changed at 2010-06-30T22:54:00Z by wilmer

Alright, it was really me being the idiot.

changeset:devel,603

It really works now. Srsly.

comment:10 Changed at 2010-07-01T18:12:29Z by ilf

Indeed it does. Thanks :)

Modify Ticket

Action
as closed The owner will remain geert.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.