[twitter-dev] Profile image urls - how to update
Hey there, I'm caching profile image urls. I'm finding quite a bit of churn, and have started wondering how I'm going to keep them up to date. Is there anyway to predict or determine a profile image url from a screen name or something? The url's provided all seem to contain part of the original file name - which of course is impossible to guess. If there's not a way to determine them from the screen name, is there an easy way to get a bulk update of the image urls? Cheers, Tim.
[twitter-dev] Re: Invalid signature when calling request_token
Okay, I discovered that Twitter only allows OAuth data to be in an Authorized header and not as query arguments. Now I have changed to using the Authorized header I can get an access token but attempting to call /users/show fails with Unauthorized application or token. Any ideas? Ross
[twitter-dev] Re: Invalid token authentication failed when reply_to_status_id set
Actually I'm unable to update any status's at the moment with or without in_reply_to_status_id set. It was working absoluely fine yesterday when testing and I posted a message on my own timeline just fine. However whenever I try to post today I get 'Failed to authenticate oauth signature or token', nothing has changed at my end in the code. On May 21, 3:48 am, Abraham Williams 4bra...@gmail.com wrote: Can you confirm if post_statusesUpdate() works without the 'in_reply_to_status_id' parameter? 2009/5/19 alon alon.car...@gmail.com Hello all! ,Jaisen, I'm trying to use your EpiTwitter php class to communicate with the twitter API. This is my php code: $twitterObj = new EpiTwitter($consumer_key, $consumer_secret, USER_TOKEN, USER_SECRET_TOKEN); $userInfo = $twitterObj-get_accountVerify_credentials(); $twitterObj-post_statusesUpdate(array(status = $status, in_reply_to_status_id = $replytoid)); The first request (acount/verify_credential) returns fine, following is the http request: GET /account/verify_credentials.json HTTP/1.1 Host: twitter.com Accept: */* Authorization: OAuth realm=/account/ verify_credentials.json,oauth_consumer_key=,oauth_token=,oauth_nonce=XX,oauth_timestamp=1242578551,oauth_signature_method=HMAC- SHA1,oauth_version=1.0,oauth_signature= The second request (statuses/update) returns with Failed to validate oauth signature or token : POST /statuses/update.json HTTP/1.1 Host: twitter.com Accept: */* Authorization: OAuth realm=/statuses/ update.json,oauth_consumer_key=,oauth_token=X,oauth_nonce=,oauth_timestamp=1242578551,oauth_signature_method=HMAC- SHA1,oauth_version=1.0,oauth_signature= Content-Length: 81 Content-Type: application/x-www-form-urlencoded status=%40LeeronShalev+testing%3A+One%2C +Twoamp;in_reply_to_status_id=1786937496 Thanks in advance, -- Abraham Williams |http://the.hackerconundrum.com Hacker |http://abrah.am|http://twitter.com/abraham Web608 | Community Evangelist |http://web608.org This email is: [ ] blogable [x] ask first [ ] private. Sent from San Francisco, California, United States
[twitter-dev] Re: Invalid token authentication failed when reply_to_status_id set
I've got the same issue, started today when it worked fine yesterday On May 21, 3:48 am, Abraham Williams 4bra...@gmail.com wrote: Can you confirm if post_statusesUpdate() works without the 'in_reply_to_status_id' parameter? 2009/5/19 alon alon.car...@gmail.com Hello all! ,Jaisen, I'm trying to use your EpiTwitter php class to communicate with the twitter API. This is my php code: $twitterObj = new EpiTwitter($consumer_key, $consumer_secret, USER_TOKEN, USER_SECRET_TOKEN); $userInfo = $twitterObj-get_accountVerify_credentials(); $twitterObj-post_statusesUpdate(array(status = $status, in_reply_to_status_id = $replytoid)); The first request (acount/verify_credential) returns fine, following is the http request: GET /account/verify_credentials.json HTTP/1.1 Host: twitter.com Accept: */* Authorization: OAuth realm=/account/ verify_credentials.json,oauth_consumer_key=,oauth_token=,oauth_nonce=XX,oauth_timestamp=1242578551,oauth_signature_method=HMAC- SHA1,oauth_version=1.0,oauth_signature= The second request (statuses/update) returns with Failed to validate oauth signature or token : POST /statuses/update.json HTTP/1.1 Host: twitter.com Accept: */* Authorization: OAuth realm=/statuses/ update.json,oauth_consumer_key=,oauth_token=X,oauth_nonce=,oauth_timestamp=1242578551,oauth_signature_method=HMAC- SHA1,oauth_version=1.0,oauth_signature= Content-Length: 81 Content-Type: application/x-www-form-urlencoded status=%40LeeronShalev+testing%3A+One%2C +Twoamp;in_reply_to_status_id=1786937496 Thanks in advance, -- Abraham Williams |http://the.hackerconundrum.com Hacker |http://abrah.am|http://twitter.com/abraham Web608 | Community Evangelist |http://web608.org This email is: [ ] blogable [x] ask first [ ] private. Sent from San Francisco, California, United States
[twitter-dev] stream follow request not working
I tried using the stream API call documented here: http://apiwiki.twitter.com/Streaming-API-Documentation#Connecting At the bottom there is the following example - Example: Create a file called 'following' that contains, exactly and excluding the quotation marks: follow=12 13 15 16 20 87. Execute: curl -d @following http://stream.twitter.com/follow.json - uAnyTwitterUser:Password.You will receive JSON updates from Jack Biz, Crystal, Ev, Krissy, but not from Jeremy, as he's a private user. I tried running it exactly as described. But my Curl just keeps throwing blank lines at me and I checked the user didnt get any new followings. Would be great to know. thanks, -developerinlondon
[twitter-dev] how to remove follwers,friends of twitter user
I have used Twitterizer.Framework dll . TwitterUserCollection friends = new TwitterUserCollection(); foreach (TwitterUser friend in friends) { //Remove a friend friends.Remove(friend); } but it remove from the collecttion we have ,donot update user account
[twitter-dev] Re: stream follow request not working
The Streaming API /follow resource does not create new followings. Instead, it filters the stream of all public statuses created by a list of users. Perhaps the nomenclature is confusing. You probably observed a time period when the given small list of users did not update their status. The newlines are keep-alive probes. -John Kalucki Services, Twitter Inc. On May 21, 4:22 am, developerinlondon ebilliona...@gmail.com wrote: I tried using the stream API call documented here:http://apiwiki.twitter.com/Streaming-API-Documentation#Connecting At the bottom there is the following example - Example: Create a file called 'following' that contains, exactly and excluding the quotation marks: follow=12 13 15 16 20 87. Execute: curl -d @followinghttp://stream.twitter.com/follow.json- uAnyTwitterUser:Password.You will receive JSON updates from Jack Biz, Crystal, Ev, Krissy, but not from Jeremy, as he's a private user. I tried running it exactly as described. But my Curl just keeps throwing blank lines at me and I checked the user didnt get any new followings. Would be great to know. thanks, -developerinlondon
[twitter-dev] Re: Public timeline sample data set.
David, You can capture a sample of the statuses via the Streaming API and perform the analysis on that data set. The /gardenhose and /spritzer feeds exist precisely for this type of experiementation. There's no practical way to get a copy of the full social graph. (Aside: It's hard enough for us to store and serve the SGS for internal purposes. The size and velocity alone make it, cough, cough, unwieldy.) If you are interested in doing this sort of analysis full-time, apply for a job! We're a data-driven shop, and we're always crawling over the numbers. -John Kalucki Services, Twitter Inc. On May 20, 3:36 pm, David W meepmeepmeepena...@gmail.com wrote: Hi there, While working with the Twitter API last night, I found myself thinking of some crazy ideas for use of the full public timeline feed. Proving these ideas would be pretty simple given a sample of the timeline on my laptop, and so I was wondering if such a thing is available? Basically, I'd like a copy of about 24 hours worth of the equivalent of the XMPP feed from some arbitrary moment in time, perhaps with a snapshot of the social graph for the people that tweeted during that time frame. If something like this isn't already available for research purposes, I think it'd be a wonderful contribution on Twitter's part, perhaps even if some anonymization was applied (although this seems pointless given it *is* the public timeline). If nothing else, it'd allow people like me (hacker with a laptop and 4gb of RAM) to quickly come up with much cooler uses for the Twitter data. :) Thoughts? David.
[twitter-dev] cool, relevant, worth sharing
http://stackoverflow.com/questions/891643/twitter-image-encoding-challenge -- Thanks- - Andy Badera - and...@badera.us - Google me: http://www.google.com/search?q=andrew+badera - This email is: [ ] bloggable [x] ask first [ ] private
[twitter-dev] Re: Profile image urls - how to update
Currently you are only option is calling users/show.xml on each account. 2009/5/21 Tim Haines tmhai...@gmail.com Hey there, I'm caching profile image urls. I'm finding quite a bit of churn, and have started wondering how I'm going to keep them up to date. Is there anyway to predict or determine a profile image url from a screen name or something? The url's provided all seem to contain part of the original file name - which of course is impossible to guess. If there's not a way to determine them from the screen name, is there an easy way to get a bulk update of the image urls? Cheers, Tim. -- Abraham Williams | http://the.hackerconundrum.com Hacker | http://abrah.am | http://twitter.com/abraham Web608 | Community Evangelist | http://web608.org This email is: [ ] blogable [x] ask first [ ] private.
[twitter-dev] Background Image URL always non-empty
(was posted a while ago, but no replies) If a background image is turned off by a user, its last value is still shown in the api for the verifyCredentials and user/show actions. For example, I get this: ... profile_background_image_url http://static.twitter.com/images/themes/theme1/bg.gif /profile_background_image_url ... although I would expect to see something like this: ... profile_background_image_url/ or another field that says profile_background_image_showfalse/ profile_background_image_show
[twitter-dev] profile views count against limit?
is this correct? does someone viewing your profile count against your 100 accesses? seems to me that is what is happening.
[twitter-dev] Re: stream follow request not working
Ah I see, makes sense. Thanks. This API being Streaming means I can constantly stay connected to it without risking being banned. Correct? Would be useful to stay connected to the Spritzer call. Although I am confused what practical use it would be if I am getting a small portion as its a small percentage, meaning I may lose out on certain keywords if I am keeping an eye on them? On May 21, 2:12 pm, John Kalucki jkalu...@gmail.com wrote: The Streaming API /follow resource does not create new followings. Instead, it filters the stream of all public statuses created by a list of users. Perhaps the nomenclature is confusing. You probably observed a time period when the given small list of users did not update their status. The newlines are keep-alive probes. -John Kalucki Services, Twitter Inc. On May 21, 4:22 am, developerinlondon ebilliona...@gmail.com wrote: I tried using the stream API call documented here:http://apiwiki.twitter.com/Streaming-API-Documentation#Connecting At the bottom there is the following example - Example: Create a file called 'following' that contains, exactly and excluding the quotation marks: follow=12 13 15 16 20 87. Execute: curl -d @followinghttp://stream.twitter.com/follow.json- uAnyTwitterUser:Password.You will receive JSON updates from Jack Biz, Crystal, Ev, Krissy, but not from Jeremy, as he's a private user. I tried running it exactly as described. But my Curl just keeps throwing blank lines at me and I checked the user didnt get any new followings. Would be great to know. thanks, -developerinlondon
[twitter-dev] Re: profile views count against limit?
No. Rate limiting for an account or IP is only affected by that account or IP accessing the API. On Thu, May 21, 2009 at 09:39, JB byrnes.j...@gmail.com wrote: is this correct? does someone viewing your profile count against your 100 accesses? seems to me that is what is happening. -- Abraham Williams | http://the.hackerconundrum.com Hacker | http://abrah.am | http://twitter.com/abraham Web608 | Community Evangelist | http://web608.org This email is: [ ] blogable [x] ask first [ ] private. Sent from San Francisco, California, United States
[twitter-dev] Re: stream follow request not working
The (sampled) streaming API is good for collecting representative aggregate statistics on the public timeline, or full data on limited subsets. If you already know what keywords you're looking for, you can use the search API to find all mentions, but if you want to identify clusters of emerging topics, having a representative sample is almost as good as the full data in many cases. That gives you something to go back and run through the search API. If there wasn't enough traffic for it to show up in the sample, it probably isn't an emerging topic, and if you already know what topic keyword you're looking for, it will usually show up promptly in the search API. On May 21, 10:44 am, developerinlondon ebilliona...@gmail.com wrote: Ah I see, makes sense. Thanks. This API being Streaming means I can constantly stay connected to it without risking being banned. Correct? Would be useful to stay connected to the Spritzer call. Although I am confused what practical use it would be if I am getting a small portion as its a small percentage, meaning I may lose out on certain keywords if I am keeping an eye on them? On May 21, 2:12 pm, John Kalucki jkalu...@gmail.com wrote: The Streaming API /follow resource does not create new followings. Instead, it filters the stream of all public statuses created by a list of users. Perhaps the nomenclature is confusing. You probably observed a time period when the given small list of users did not update their status. The newlines are keep-alive probes. -John Kalucki Services, Twitter Inc. On May 21, 4:22 am, developerinlondon ebilliona...@gmail.com wrote: I tried using the stream API call documented here:http://apiwiki.twitter.com/Streaming-API-Documentation#Connecting At the bottom there is the following example - Example: Create a file called 'following' that contains, exactly and excluding the quotation marks: follow=12 13 15 16 20 87. Execute: curl -d @followinghttp://stream.twitter.com/follow.json- uAnyTwitterUser:Password.You will receive JSON updates from Jack Biz, Crystal, Ev, Krissy, but not from Jeremy, as he's a private user. I tried running it exactly as described. But my Curl just keeps throwing blank lines at me and I checked the user didnt get any new followings. Would be great to know. thanks, -developerinlondon
[twitter-dev] The problems with search in my app
Hey guys, Im midway through a project right now and I've discovered something about Twitter thats caused my project to come to a halt.. The problem is that if you delete a tweet message it still displays on the search results.. Twitter just caches it, wth? I dont expect this from twitter.. anyone else a little suprised??? I wont go into details but without the ability of users to delete their tweets from the search my application will have a big interaction flaw.. any ideas how I go about solving this? Thanks
[twitter-dev] Re: The problems with search in my app
This is a known issue: http://code.google.com/p/twitter-api/issues/detail?id=164 As my application is primarily search-based, I field complaints on this topic all the time. No idea when it might be fixed, but I hope it's soon... not for my sake, but for the users'. -Chad On Thu, May 21, 2009 at 4:02 PM, Fabian Vercuiel fvercu...@gmail.com wrote: Hey guys, Im midway through a project right now and I've discovered something about Twitter thats caused my project to come to a halt.. The problem is that if you delete a tweet message it still displays on the search results.. Twitter just caches it, wth? I dont expect this from twitter.. anyone else a little suprised??? I wont go into details but without the ability of users to delete their tweets from the search my application will have a big interaction flaw.. any ideas how I go about solving this? Thanks
[twitter-dev] Re: Profile image urls - how to update
Hi Clint, Thanks for that. I've added myself to the watchlist. I saw a similar note from 2007, so was hoping it was already done - but 'a month or so' sounds good to me. Tim. On May 21, 10:24 pm, Clint Shryock cts...@gmail.com wrote: the API team is in the process of re-engineering this functionality: in the future the current profile image will have a static URL.see:http://code.google.com/p/twitter-api/issues/detail?id=497#c8 +Clint On Thu, May 21, 2009 at 6:11 AM, Tim Haines tmhai...@gmail.com wrote: Hey there, I'm caching profile image urls. I'm finding quite a bit of churn, and have started wondering how I'm going to keep them up to date. Is there anyway to predict or determine a profile image url from a screen name or something? The url's provided all seem to contain part of the original file name - which of course is impossible to guess. If there's not a way to determine them from the screen name, is there an easy way to get a bulk update of the image urls? Cheers, Tim.
[twitter-dev] Re: Profile image urls - how to update
Thanks for your patience guys -- we realize the benefits of predictable static URLs. It's unfortunately kind of back-burner work but we're getting to it. As most of you can tell, the image uploading logic needs a lot of love. Cheers, Doug -- Doug Williams Twitter Platform Support http://twitter.com/dougw On Thu, May 21, 2009 at 4:38 PM, Tim Haines tmhai...@gmail.com wrote: Hi Clint, Thanks for that. I've added myself to the watchlist. I saw a similar note from 2007, so was hoping it was already done - but 'a month or so' sounds good to me. Tim. On May 21, 10:24 pm, Clint Shryock cts...@gmail.com wrote: the API team is in the process of re-engineering this functionality: in the future the current profile image will have a static URL.see: http://code.google.com/p/twitter-api/issues/detail?id=497#c8 +Clint On Thu, May 21, 2009 at 6:11 AM, Tim Haines tmhai...@gmail.com wrote: Hey there, I'm caching profile image urls. I'm finding quite a bit of churn, and have started wondering how I'm going to keep them up to date. Is there anyway to predict or determine a profile image url from a screen name or something? The url's provided all seem to contain part of the original file name - which of course is impossible to guess. If there's not a way to determine them from the screen name, is there an easy way to get a bulk update of the image urls? Cheers, Tim.
[twitter-dev] Date time string
I've noticed that most of the date time strings in the XML responses are formatted like this Thu May 21 03:15:28 + 2009 What exactly is that +?
[twitter-dev] Re: Regex for @replies
They will link up to 20 but are limited to 15. Hmm On May 14, 4:59 pm, Tim Rosenblatt trose...@gmail.com wrote: Hey Craig, We found an addition to this. Your regex is great, but it doesn't limit the length of screen names. Twitter doesn't allow signups greater than 15 chars (but in tweets, it will actually link up to 20 chars). So, @abcdefghijklmnopqrstuvwxyz will be linked out to @abcdefghijklmnopqrst \...@[\w\d_]{1,15} This also works in Ruby. -- Tim On May 12, 2:01 pm, ericdoesdot...@gmail.com ericdoesdot...@gmail.com wrote: Hi Everyone, In .NET, I use the regex: \...@[\w\d_]+ This pattern exhibits the behavior described by Doug -- it finds the mentions @bob, @BOB, @bob and -...@bob, but not _...@bob and h...@bob. I sent the following tweet: `...@a ~...@a !...@a @@a #...@a $...@a %...@a ^...@a @a *...@a (@a )@a _...@a +...@a -...@a =...@a [...@a {...@a ]...@a }...@a \...@a |@a ;@a :@a '@a @a ,@a @a @a @a /@a ?...@a a...@a 1...@a Twitter and my pattern both did notmatch_...@a and a...@a and 1...@a. On May 12, 8:13 am, CaMason stasisme...@googlemail.com wrote: It looks like they're simply applying this regex as a test: (?![\w])@username(?![\w]) Thus, if a character on either side is not (a-z, A-Z, 0-9, _) then it is a mention. any 'word' character (a-z, A-Z, 0-9, _) on either side of '@screenname' causes the mention to fail. (I hope I got the regex explanation correct!). -Craig On May 12, 12:33 pm, hjb ha...@heatonmoor.com wrote: @Doug, Is this behavour likely to remain? ( I noticed that @repliesand - @repliesare successful ) That is to say, I'm sure @replieswill work at some point via sms, but can we rely on the fact that _...@repliesdo not? Is this related to there being any chance of it being an email address? Thanks, Harry On May 11, 6:26 pm, Doug Williams d...@twitter.com wrote: In my test posts @dougw and @DOUGW worked as mentions. t...@dougw and _...@dougw were not included as mentions. Thanks, Doug -- Doug Williams Twitter Platform Supporthttp://twitter.com/dougw On Mon, May 11, 2009 at 10:16 AM, CaMason stasisme...@googlemail.comwrote: Thanks Doug, that's a great help. How about preceding? i.e. should t...@dougw, _...@dougw or @dougw create mentions? The main concern here obviously is email addresses. And finally, are screen names case sensitive? :) Cheers On May 11, 6:07 pm, Doug Williams d...@twitter.com wrote: The classic definition of an @reply is any tweet that starts with @user. If you perfrom a to:user (e.g. to:dougw) query at search.twitter.com you will only get @replies. @replieswere converted to mentions after we realized people didn't just @reply. Mentions are any tweet that contain @user within the text of the tweet. So @repliesare a subset of mentions. Any non-alphanumeric (where alphanumeric is a-z, 0-9, or _) can terminate the username. For instance: hi @dougw, you look dapper today is a mention. Thanks, Doug -- Doug Williams Twitter Platform Supporthttp://twitter.com/dougw On Mon, May 11, 2009 at 2:36 AM, stasisme...@googlemail.com stasisme...@googlemail.com wrote: Hi guys, For an application I'm working on, we have a single table for 'tweets' and another for DMs. We're linking TwitterUsers to Tweets with a many:many, and a simple flag to specify if the tweet is a reply/ mention. We first pull in messages from the user_timeline feed, then the mentions feed. As such, we'd like to check if any of the messages in user_timeline feed is actually a reply. Could anybody clarify the exact rules that are used to determine whether a string is a reply/mention? i.e. preceded by start-of-string or non-word character... followed by space, comma, period or end of message... case insensitive... [not even sure if these are correct! :) ] Currently I'm using: /(?![^\W_])@%s(?![^\W_])/i with %s replaced by the user's screen name. Perhaps one of the devs could share the exact rules (or even the regex), or propose a nicer mechanism for detectingreplies. (I did propose checking forrepliesbefore tweets, but these update threads are run asynchronously). Cheers- Hide quoted text - - Show quoted text -
[twitter-dev] Re: Profile image urls - how to update
Speaking of static avatar URLs... how about Gravatar[1] support? [1] http://en.gravatar.com/ On Thu, May 21, 2009 at 18:14, Doug Williams d...@twitter.com wrote: Thanks for your patience guys -- we realize the benefits of predictable static URLs. It's unfortunately kind of back-burner work but we're getting to it. As most of you can tell, the image uploading logic needs a lot of love. Cheers, Doug -- Doug Williams Twitter Platform Support http://twitter.com/dougw On Thu, May 21, 2009 at 4:38 PM, Tim Haines tmhai...@gmail.com wrote: Hi Clint, Thanks for that. I've added myself to the watchlist. I saw a similar note from 2007, so was hoping it was already done - but 'a month or so' sounds good to me. Tim. On May 21, 10:24 pm, Clint Shryock cts...@gmail.com wrote: the API team is in the process of re-engineering this functionality: in the future the current profile image will have a static URL.see: http://code.google.com/p/twitter-api/issues/detail?id=497#c8 +Clint On Thu, May 21, 2009 at 6:11 AM, Tim Haines tmhai...@gmail.com wrote: Hey there, I'm caching profile image urls. I'm finding quite a bit of churn, and have started wondering how I'm going to keep them up to date. Is there anyway to predict or determine a profile image url from a screen name or something? The url's provided all seem to contain part of the original file name - which of course is impossible to guess. If there's not a way to determine them from the screen name, is there an easy way to get a bulk update of the image urls? Cheers, Tim. -- Abraham Williams | http://the.hackerconundrum.com Hacker | http://abrah.am | http://twitter.com/abraham Project | http://fireeagle.labs.poseurtech.com This email is: [ ] blogable [x] ask first [ ] private. Sent from San Francisco, California, United States