[twitter-dev] oAuth Question
I have oAuth working for http://tweetarun.com When the user Grants access I get the oAuth token back which is the request token. Then I exchange this for an Access token and I store this for use with all subsequent calls. The question is how long is this Access token good for? I'm finding when a user comes back even as soon as a few hours the token no longer works and they have to go Grant again. Am I doing something wrong? -fs
[twitter-dev] Re: oAuth Question
Thanks for the reply. Yes I figured I was doing something wrong but I'm not sure what. I've found subsequent calls work fine, up until a few hours. I figured my reading of the spec was wrong and I was storing the wrong oauth token or something but if that's not the case I'll at least stop trying to debug the protocol and focus elsewhere. -fs On May 22, 5:57 am, Hameedullah Khan hameed.u.k...@gmail.com wrote: On May 22, 6:39 am, Francis Shanahan francisshana...@gmail.com wrote: The question is how long is this Access token good for? I'm finding when a user comes back even as soon as a few hours the token no longer works and they have to go Grant again. Am I doing something wrong? You must be doing something wrong, because according to twitter the Access Token never expires. For more information see:http://apiwiki.twitter.com/OAuth-FAQ#Howlongdoesanaccesstokenlast -- Thanks. Hameedullah Khan @hameedullah
[twitter-dev] Typo and Problem with Twitter's Redirect
Lately I've noticed once the user Grants on the Twitter oAuth page, the Redirect page from Twitter is showing up a little longer. There's a typo dosen't on this page by the way. The bigger problem though is that a redirect is taking place but the browser hasn't reacted and the user has a chance to click the click here if you're browser doesn't redirect link. I'm not sure, but it seems like the token has already gone out to the target site. If they clicks that link it introduces a bug since the target site gets the oAuth token twice and tries to use it in exchange for an access token. You can test it at http://tweetarun.com Anyone else noticed this? Is this a bug? or is something else going on? -fs
[twitter-dev] Re: Profile image urls - how to update
Has there been any update or advance on how to keep Profile Images up to date? They're driving my nuts, especially with the Iran green- overlay nonsense. -fs On May 22, 12:36 pm, Ollie Parsley olliedud...@googlemail.com wrote: Haven't figured out caching yet. Thats on the agenda after a weekend break :) Ollie On May 22, 11:56 am, Neil Ellis neilellis1...@googlemail.com wrote: Good call Ollie, caching? On 22 May 2009, at 11:11, Ollie Parsley wrote: I put a very quick app together called Twavatars that creates a static URL to aprofileimage. The request does an API call and streams the image from the S3 url. This does make theimagesload slower but it is only a temporary solution untill there is an official solution. So it is fine when displaying a couple of avatars, if you displaying lots of avatars it will be tediously slow. My avatar (@ollieparsley) -http://twavatars.ollieparsley.com/user/10721822?s=thumb orhttp://twavatars.ollieparsley.com/user/ollieparsley?s=normal http://twavatars.ollieparsley.comformore info if anyone is interested. Ollie On May 22, 2:24 am, Abraham Williams 4bra...@gmail.com wrote: 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 currentprofileimage 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 cachingprofileimage 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 aprofileimage 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
[twitter-dev] How to Keep Profile Image Urls up to date
When a user visits my site (tweetarun.com) I make a call to grab their latest profile data and store their profileImageUrl in my database. This url is used on my site to display their profile image on a Members widget which is accessible to all visitors, not just authenticated twitter users. If the user changes their profile image on Twitter.com, my site has no knowledge of this other than the cached Profile Image url is now broken. Is there some method I'm missing to keep these image urls up to date? -fs http://tweetarun.com
[twitter-dev] Re: How to Keep Profile Image Urls up to date
Right now I update the profile image every time the user comes back to the site but obviously I'm getting broken images in the meantime. I'll write a job to update these as JDG has mentioned but it certainly is not ideal. The biggest problem has been the Green Overlay and most recently LiveStrong overlay memes. Not sure why Twitter doesn't just abstract the profile image with some standard URL scheme. -fs On Jul 10, 6:45 pm, JDG ghil...@gmail.com wrote: I don't know if twitter's site supports all HTTP calls, but you could make a HEAD call to the profile img url you have stored and if you get a 404, could make another call to their profile to get the new image url. It's an extra HTTP call, sure, but you'd be most liable to get the correct information that way. Doug / Matt / other Twitter staff member, do you know if the web servers that host the images (amazonaws or twimg) support HEAD calls? On Fri, Jul 10, 2009 at 11:28, Francis Shanahan francisshana...@gmail.comwrote: When a user visits my site (tweetarun.com) I make a call to grab their latest profile data and store their profileImageUrl in my database. This url is used on my site to display their profile image on a Members widget which is accessible to all visitors, not just authenticated twitter users. If the user changes their profile image on Twitter.com, my site has no knowledge of this other than the cached Profile Image url is now broken. Is there some method I'm missing to keep these image urls up to date? -fs http://tweetarun.com -- Internets. Serious business.
[twitter-dev] Too Many Requests for a specific user ....
I realise there are limits on the number of times an application can call into Twitter in a given time period. In the course of my testing though I tend to fire off a lot of requests, nothing crazy just probably 1 per minute as I'm clicking through my tests. Sometimes when I'm testing oAuth Login and logging in/out of the application, and going back and forth with the Grant/Deny page I am experiencing 403 Unauthorized errors with the following data in the response ?xml version=1.0 encoding=UTF-8? hash request/account/ verify_credentials.xml?oauth_consumer_key=[removed] amp;oauth_nonce=7959883amp;oauth_signature_method=HMAC- SHA1amp;oauth_timestamp=1248659818amp;oauth_token=[removed] amp;oauth_version=1.0amp;oauth_signature=TH %2bFof7ErcFdH6XgVgPeou174yI%3d/request errorToo many requests in this time period. Try again later./error /hash This error is just given for my account, other users don't get this error. I can log in from the site with another user without issue. So given that I'm not making that many requests and can trigger this with just manual clicking, how many are allowed for a given user?
[twitter-dev] Re: Too Many Requests for a specific user ....
Sorry that's 403 Forbidden errors I'm gietting. On Jul 26, 10:06 pm, Francis Shanahan francisshana...@gmail.com wrote: I realise there are limits on the number of times an application can call into Twitter in a given time period. In the course of my testing though I tend to fire off a lot of requests, nothing crazy just probably 1 per minute as I'm clicking through my tests. Sometimes when I'm testing oAuth Login and logging in/out of the application, and going back and forth with the Grant/Deny page I am experiencing 403 Unauthorized errors with the following data in the response ?xml version=1.0 encoding=UTF-8? hash request/account/ verify_credentials.xml?oauth_consumer_key=[removed] amp;oauth_nonce=7959883amp;oauth_signature_method=HMAC- SHA1amp;oauth_timestamp=1248659818amp;oauth_token=[removed] amp;oauth_version=1.0amp;oauth_signature=TH %2bFof7ErcFdH6XgVgPeou174yI%3d/request errorToo many requests in this time period. Try again later./error /hash This error is just given for my account, other users don't get this error. I can log in from the site with another user without issue. So given that I'm not making that many requests and can trigger this with just manual clicking, how many are allowed for a given user?
[twitter-dev] Re: Too Many Requests for a specific user ....
ok, so I'll optimize my calls to verify_credentials. Would be good if this was documented someplace. Also, does the same limit exist for other APIs? -fs On Jul 27, 10:39 am, TinBlue tinb...@gmail.com wrote: Twitter in their infinite wisdom decided to implement a limit on the verify_credentials API call. I believe its 15 calls per hour. They have since come to their senses and said they will be rolling back to the previous behavior. However, as yet they still haven't done it. But personally, I wish they would hurry up! On Jul 27, 3:07 am, Francis Shanahan francisshana...@gmail.com wrote: Sorry that's 403 Forbidden errors I'm gietting. On Jul 26, 10:06 pm, Francis Shanahan francisshana...@gmail.com wrote: I realise there are limits on the number of times an application can call into Twitter in a given time period. In the course of my testing though I tend to fire off a lot of requests, nothing crazy just probably 1 per minute as I'm clicking through my tests. Sometimes when I'm testing oAuth Login and logging in/out of the application, and going back and forth with the Grant/Deny page I am experiencing 403 Unauthorized errors with the following data in the response ?xml version=1.0 encoding=UTF-8? hash request/account/ verify_credentials.xml?oauth_consumer_key=[removed] amp;oauth_nonce=7959883amp;oauth_signature_method=HMAC- SHA1amp;oauth_timestamp=1248659818amp;oauth_token=[removed] amp;oauth_version=1.0amp;oauth_signature=TH %2bFof7ErcFdH6XgVgPeou174yI%3d/request errorToo many requests in this time period. Try again later./error /hash This error is just given for my account, other users don't get this error. I can log in from the site with another user without issue. So given that I'm not making that many requests and can trigger this with just manual clicking, how many are allowed for a given user?
[twitter-dev] Bad response on Show
I'm calling :http://twitter.com/users/show.xml My request works fine, it's signed correctly with a valid token etc. Every so often I get this response: !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/ TR/1999/REC-html401-19991224/strict.dtd !-- !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd; -- HTML HEAD META HTTP-EQUIV=Refresh CONTENT=0.1 META HTTP- EQUIV=Pragma CONTENT=no-cache META HTTP-EQUIV=Expires CONTENT=-1 TITLE/TITLE /HEAD BODYP/BODY /HTML No error is thrown and no reason code or anything comes back. Is this a bug on the Twitter side? Is this a known issue? -fs http://tweetarun.com
[twitter-dev] Re: Bad response on Show
Thank you both. On Sep 8, 1:47 pm, Naveen A knig...@gmail.com wrote: While this issue is known and does show up on the list fairly frequently, I think the best solution is to point users who report this to the number of existing issues filed for this bug so that they may STAR them and be kept up to date about what is going on with the issue. http://code.google.com/p/twitter-api/issues/detail?id=1014http://code.google.com/p/twitter-api/issues/detail?id=1015http://code.google.com/p/twitter-api/issues/detail?id=968 On Sep 8, 12:02 pm, JDG ghil...@gmail.com wrote: This is a very known issue and there are threads about it in this group once every 18 or so hours. On Tue, Sep 8, 2009 at 09:38, Francis Shanahan francisshana...@gmail.comwrote: I'm calling :http://twitter.com/users/show.xml My request works fine, it's signed correctly with a valid token etc. Every so often I get this response: !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/ TR/1999/REC-html401-19991224/strict.dtdhttp://www.w3.org/%0ATR/1999/REC-html401-19991224/strict.dtd !-- !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd; -- HTML HEAD META HTTP-EQUIV=Refresh CONTENT=0.1 META HTTP- EQUIV=Pragma CONTENT=no-cache META HTTP-EQUIV=Expires CONTENT=-1 TITLE/TITLE /HEAD BODYP/BODY /HTML No error is thrown and no reason code or anything comes back. Is this a bug on the Twitter side? Is this a known issue? -fs http://tweetarun.com -- Internets. Serious business.
[twitter-dev] Looking for icons
I'm looking for some icons to depict the following, would be nice if they had a Twitter theme: follow you are following tweet this reply does such a set exist anywhere?