[twitter-dev] What happened to updating display picture via API?
Hi! I have a small application (under testing) which used to update display pictures of users via API. It has stopped working for over three weeks. In fact, if I change the picture via API, I don't get any error, but the picture of that user is gone. Even updating profile picture of the same user via Web is acting strangely. For example my (@raghuprasad) picture is not visible first when I go to the settings screen (http://twitter.com/settings/profile). Then if I click on the link Delete this image, then it shows up immediately. Then it is visible on settings screen as well as on my link http://twitter.com/raghuprasad. It seems, something is not correct at Twitter end as far as display picture is concerned. Or is it something done by me which is causing problem. BTW, I am using OAuth to access the Twitter APIs for changing DPs. cheers Raghu
[twitter-dev] 401 when getting Access Token
This was working a while back when I did it for another application for a company I was working for but now when I try and reuse the code of course it doesn't work anymore :) I get to the point of getting the access_token and I keep getting the 401 error. I stopped the process and printed out the URI (see below) that is getting the 401, I am hoping that someone can help or point me in the right direction...the API countdown is getting low :) http://twitter.com/oauth/access_token?oauth_consumer_key=rQTEQe98Q9oXVNdMaDOHAAoauth_token=LMaPlwAXku9TXRUmrQumvtHb5mTqduVTwM6qHNPhKDIoauth_nonce=5960010oauth_timestamp=1280811918oauth_signature_method=HMAC-SHA1oauth_version=1.0oauth_signature=p0M%2bjCsud%2f32BE18nTeocL1c7eM%3d Thanks, Robert.
[twitter-dev] user functions not working despite the API status
I used the twitter API console after trying to debug my code for hours. It says it can not find users that are obviously there. I am providing a link to the console if that helps. http://bit.ly/aLmfVv So my questions are 1) Am I using it wrong? 2) How does the community of developers communicate to the Twitter gods that, despite the fact that the API status page indicates that User resource is up and running, that is actually is not. Thanks community
[twitter-dev] UserShow authentication for AppEngine
Hello, there is any way of accomplishing the follow task: My project is hosted at google appengine I need to get the some user profile, but i dont want the current user to accept my application, there is nothing that i want in his account. I just need to authenticate the request to http://api.twitter.com/1/ users/show.xml?screen_name=101010, but, the actor user, doesnt need to authorize my application into his twitter account. Cant i do that? Should i use a dummy twitter account for requesting that page?
[twitter-dev] Re: Twitter OAuth Example?
Hi, yes I need Twitter OAuth using PHP could you please provide me the simplest application for it along with the source code? and please explain the requirements so it can run smooth in my pc along with the explanation with each function and classes thanks in advance On Aug 3, 9:17 am, Bess bess...@gmail.com wrote: Yes it is Depending on which 3rd party library. Be ware of the publishing date of those info b/c there has been a lot of changes. I can confirmed that I am able to 1) Oauth in web app PHP 2) Oauth in Samsung bada C++ 3) Oauth in Android SDK 2.1 Java I am confirming that it can be done b/c I get these OAuth working this month using the latest version of Oauth libraries. Unfortunately I wasn't able to show them in the last Twitter hackathon b/c I haven't started working on them at the time. On Aug 2, 7:12 am, Konpaku Kogasa kogasa.l...@gmail.com wrote: could somebody please help me I need a simple Twitter OAuth example that fully running along with the source code 1. What particular language are you using? 2. To better tailor your response, what part of the OAuth process is difficult to understand? - Konpaku
[twitter-dev] Re: Twitter OAuth Example?
I am using PHP, the parts that I don't understand is the steps that the 3rd party taken to get access from the service provide, in this case twitter could you please provide me the source code along with the comments so I can understand the functionality for each classes and functions? ganteng On Aug 2, 10:12 pm, Konpaku Kogasa kogasa.l...@gmail.com wrote: could somebody please help me I need a simple Twitter OAuth example that fully running along with the source code 1. What particular language are you using? 2. To better tailor your response, what part of the OAuth process is difficult to understand? - Konpaku
Re: [twitter-dev] Image Uploading
On Aug 2, 2010, at 12:19 , Taylor Singletary wrote: Long story short, we're continuing to iterate on this issue and tweak the image manipulation routines we are using. I'd recommend when uploading images that you assure they are as square as possible before upload, but overall, this is something we (Twitter) need to fix so that its behavior is more deterministic. Taylor, I really want the black bars taken out of the images. If Twitter must squarify the image, please use transparent pixels. (I place these images on top of black, white and colored backgrounds.) I need the Twitter user's image layout to come through. (I use, and cache, the high resolution version of these images.) Thank you for your continued excellent support. Anon, Andrew Andrew W. Donoho Donoho Design Group, L.L.C. a...@ddg.com, +1 (512) 750-7596 We did not come to fear the future. We came here to shape it. -- President Barack Obama, Sept. 2009
Re: [twitter-dev] UserShow authentication for AppEngine
You can make calls to that resource without authentication. You will be rate limited by your IP address, which on Google App Engine means your rate limit will be shared by any other servers accessing Twitter from whatever your IP address is at the moment. You also could use OAuth and authenticate your own account for these purposes to get an authenticated rate limit instead, which would add a bit more predictability to your rate limiting. Taylor On Mon, Aug 2, 2010 at 7:06 PM, Luciano Jr. lucian...@gmail.com wrote: Hello, there is any way of accomplishing the follow task: My project is hosted at google appengine I need to get the some user profile, but i dont want the current user to accept my application, there is nothing that i want in his account. I just need to authenticate the request to http://api.twitter.com/1/ users/show.xml?screen_name=101010, but, the actor user, doesnt need to authorize my application into his twitter account. Cant i do that? Should i use a dummy twitter account for requesting that page?
Re: [twitter-dev] Image Uploading
No one likes the black bars. We're working on it. Taylor On Tue, Aug 3, 2010 at 4:58 AM, Andrew W. Donoho andrew.don...@gmail.comwrote: On Aug 2, 2010, at 12:19 , Taylor Singletary wrote: Long story short, we're continuing to iterate on this issue and tweak the image manipulation routines we are using. I'd recommend when uploading images that you assure they are as square as possible before upload, but overall, this is something we (Twitter) need to fix so that its behavior is more deterministic. Taylor, I really want the black bars taken out of the images. If Twitter must squarify the image, please use transparent pixels. (I place these images on top of black, white and colored backgrounds.) I need the Twitter user's image layout to come through. (I use, and cache, the high resolution version of these images.) Thank you for your continued excellent support. Anon, Andrew Andrew W. Donoho Donoho Design Group, L.L.C. a...@ddg.com, +1 (512) 750-7596 We did not come to fear the future. We came here to shape it. -- President Barack Obama, Sept. 2009
Re: [twitter-dev] Re: What happened to updating display picture via API?
Hi Raghu, We have a couple issues with image uploads at the moment that we're still cleaning up. Read a bit more about the current state of image uploads in this thread: http://groups.google.com/group/twitter-development-talk/msg/461034bc45cdcfb4?hl=en_US Taylor On Tue, Aug 3, 2010 at 12:15 AM, Raghu Prasad prasad.ragh...@gmail.comwrote: On Tue, Aug 3, 2010 at 11:15 AM, Raghu Prasad prasad.ragh...@gmail.com wrote: Hi! I have a small application (under testing) which used to update display pictures of users via API. It has stopped working for over three weeks. In fact, if I change the picture via API, I don't get any error, but the picture of that user is gone. Even updating profile picture of the same user via Web is acting strangely. For example my (@raghuprasad) picture is not visible first when I go to the settings screen (http://twitter.com/settings/profile). Then if I click on the link Delete this image, then it shows up immediately. Then it is visible on settings screen as well as on my link http://twitter.com/raghuprasad. It seems, something is not correct at Twitter end as far as display picture is concerned. Or is it something done by me which is causing problem. BTW, I am using OAuth to access the Twitter APIs for changing DPs. New update on this: I have noticed that Twitter is remembering my old display pictures. Also whenever I am using my application to update a new DP via API, I loose my picture. Then if I go back to the web interface and click on the image deletion link on the profile page, one of my older DP turns up like a resurrection! What is the queue size of old DPs kept by Twitter? Is updating a new picture not equivalent to deleting the old and putting a new one? Earlier, older avatar links used to return an error when a new one was uploaded via API. cheers, Raghu
[twitter-dev] GEOCODE search problem [URGENT]
Hi! I'm trying to make a search query with GEOCODE params but this is not working propperly in Chile. I created this geolocalizated tweet with echofon: http://twitter.com/DanielAtik/status/18794641441 As you may see here is the lat, lon of this tweet: http://maps.google.com/maps?q=-33.437790,-70.635895 But if I make a search with search API this tweet does not appears as you can see: http://search.twitter.com/search.json?geocode=-33.437790,-70.635895,2km or for delimeted more: http://search.twitter.com/search.json?geocode=-33.437790,-70.635895,2kmq=prueba As you may see at returned JSON, the tweets has not GEO values. Is there anything wrong?? Any help may be appreciated ;) You must make tests in http://metaki.com Daniel
Re: [twitter-dev] Re: What happened to updating display picture via API?
On Tue, Aug 3, 2010 at 7:43 PM, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi Raghu, We have a couple issues with image uploads at the moment that we're still cleaning up. Read a bit more about the current state of image uploads in this thread: http://groups.google.com/group/twitter-development-talk/msg/461034bc45cdcfb4?hl=en_US Taylor Thanks for the update. Hope things would be okay soon and my little app would be able to go online :) Raghu
Re: [twitter-dev] GEOCODE search problem [URGENT]
Simple answer is that the tweet isn't in the index as a search with no geocode value i.e. http://search.twitter.com/search?q=Prueba1 Tweet is from 3:15 PM Jul 17thhttp://twitter.com/DanielAtik/status/18794641441 The index doesn't go back that far. Jonathan On Tue, Aug 3, 2010 at 7:26 AM, Daniel daniel.a...@gmail.com wrote: Hi! I'm trying to make a search query with GEOCODE params but this is not working propperly in Chile. I created this geolocalizated tweet with echofon: http://twitter.com/DanielAtik/status/18794641441 As you may see here is the lat, lon of this tweet: http://maps.google.com/maps?q=-33.437790,-70.635895 But if I make a search with search API this tweet does not appears as you can see: http://search.twitter.com/search.json?geocode=-33.437790,-70.635895,2km or for delimeted more: http://search.twitter.com/search.json?geocode=-33.437790,-70.635895,2kmq=prueba As you may see at returned JSON, the tweets has not GEO values. Is there anything wrong?? Any help may be appreciated ;) You must make tests in http://metaki.com Daniel
[twitter-dev] OAuth desktop app on multiple machines: multiple tokens + revoke individual tokens?
I've just developed a desktop app with TweetSharp that uses OAuth. If I install the app on multiple machines and go through the PIN authorization on each machine, all the machines end up with the same access tokens. This means that I cannot revoke authorization for a specific machine, but have to revoke authorizations for all machines -- and then re-authorize each of the ones that I want to keep using. This is better than only accepting the most recently approved client as apparently used to be the case (http://groups.google.com/group/ twitter-development-talk/browse_thread/thread/cd8cb630110340f8/ c7d2e059f0d5fd29), but it could be better still. It would be much nicer if twitter.com could 1) for each user, track multiple tokens per desktop app 2) let users assign nicknames to individual tokens when authorizing a desktop app 3) show individual desktop tokens 4) allow revoking/removing individual desktop tokens -Peter
[twitter-dev] Re: UserShow authentication for AppEngine
Hi Taylor, thank you for your reply. An by OAuth authentication you mean a twitter user authentication, right? IE: use any twitter account, authorize my application, get the token and token secret and use those datas for the request, right? There is absolutely no way to just authenticate my application for request? On Aug 3, 11:00 am, Taylor Singletary taylorsinglet...@twitter.com wrote: You can make calls to that resource without authentication. You will be rate limited by your IP address, which on Google App Engine means your rate limit will be shared by any other servers accessing Twitter from whatever your IP address is at the moment. You also could use OAuth and authenticate your own account for these purposes to get an authenticated rate limit instead, which would add a bit more predictability to your rate limiting. Taylor On Mon, Aug 2, 2010 at 7:06 PM, Luciano Jr. lucian...@gmail.com wrote: Hello, there is any way of accomplishing the follow task: My project is hosted at google appengine I need to get the some user profile, but i dont want the current user to accept my application, there is nothing that i want in his account. I just need to authenticate the request to http://api.twitter.com/1/ users/show.xml?screen_name=101010, but, the actor user, doesnt need to authorize my application into his twitter account. Cant i do that? Should i use a dummy twitter account for requesting that page?
[twitter-dev] DNS change on stream.twitter.com
We're about to introduce a round-robin DNS entry for stream.twitter.com. This should have no visible effect on streaming clients that are properly using 'stream.twitter.com' to connect to the streaming cluster and do not have overly-restrictive outbound IP firewalls. Hard coded IP addresses are always discouraged. If, for some obscure reason, you have an outbound firewall rule by IP address on your client's host, connections may begin to periodically fail as traffic is routed to new IP addresses. -John Kalucki http://twitter.com/jkalucki Infrastructure, Twitter Inc.
[twitter-dev] Maximum length of variables in fdata structures
Where can I look up the maximum length of variables in data structures (id, name, screen_name, etc.)?
[twitter-dev] Re: Frequent errors when using OAuth, none when using basic
Hi Taylor, Thanks for your analysis. As mentioned, I'm using oauth-proxy (http:// github.com/mojodna/oauth-proxy, I think was the URL); I wrote none of the OAuth code, so I have no idea what it may or may not be doing. I tried it, it seemed to work (until these problems posting nagios notifications) so I used it. You mentioned % characters not being properly encoded - I did wonder whether the problem was %-related before, but tried some test tweets containing % characters and generally found that they posted properly. I had a bit of a brainwave while on the train today, though, and realised that if = signs are being mishandled (not sure why I overlooked = before!), that would fit the symptoms. And indeed, it does look like that might be the problem - I just tried substituting _ for = in a previously failed notification, and it posted fine. However, if oauth-proxy is indeed doing OAuth as badly as your list of faults implies, I may have a bit of a job on my hands to figure out what it's doing and fix it, or might try to find some other OAuth proxy or client. Pity, though, as oauth-proxy was about the only thing I'd found so far which lets me send tweets relatively easily from a shell script. (There was a curl-alike with OAuth support whose name I forget, which had so many dependencies (Ruby, I think) that I eventually gave up trying to get it to work.) It's also possible that I may be curling data into oauth-proxy incorrectly - I will try doing %-escaping on my argument to curl's -d option and see how that affects things. Anyway, for now, I can replace = with _. When I have time, I can either try staring hard at oauth-proxy to try to understand and fix it, or look for an alternative tool. Hmm, maybe by then, curl will have OAuth support... Thanks for your help, --Charles
[twitter-dev] BlackBerry, XAuth and twitterapime
I am having a very difficult time trying to get XAuth working in my BlackBerry app. I have downloaded twitterapime the hmacsha ecodingand Base64Ecoder did not seem to work for me so I replaced the getSignature method in XAuthSigner with... /** * p * Generate a signature from the given base string. * /p * @param baseString Base string. * @param consumerSecret Consumer secret. * @param tokenSecret Token secret. * @return Signature. */ private static String getSignature(String baseString, String consumerSecret, String tokenSecret) { // byte[] b = HMAC.getHmac(baseString, consumerSecret + '' + tokenSecret); // // // return Base64Encoder.encode(b); String ret = null; try { ret = hmacsha1(baseString, consumerSecret + '' + tokenSecret); } catch (Exception e) { new RuntimeException(e.getMessage()); } return ret; } private static String hmacsha1(String key, String message) throws CryptoTokenException, CryptoUnsupportedOperationException, IOException { HMACKey k = new HMACKey(key.getBytes()); HMAC hmac = new HMAC(k, new SHA1Digest()); hmac.update(message.getBytes()); byte[] mac = hmac.getMAC(); return Base64OutputStream.encodeAsString(mac, 0, mac.length, false, false); } and any base 64 encodings with Base64OutputStream.encodeAsString(mac, 0, mac.length, false, false); I get 401 errors when attempting to get my request token. I can replace my secrets, ids and pass with dummys and place a step by steps of what is going on if that would help?
[twitter-dev] Re: GEOCODE search problem [URGENT]
Sorry but I do not understand your answer!! If you make the geocode search in Europe or in USA you may see the geocode returns Point (lat, lon) information, but in Chile only returns the Location, Profile information!!! Any idea? Daniel On 3 ago, 12:01, Jonathan Reichhold jonathan.reichh...@gmail.com wrote: Simple answer is that the tweet isn't in the index as a search with no geocode value i.e.http://search.twitter.com/search?q=Prueba1 Tweet is from 3:15 PM Jul 17thhttp://twitter.com/DanielAtik/status/18794641441 The index doesn't go back that far. Jonathan On Tue, Aug 3, 2010 at 7:26 AM, Daniel daniel.a...@gmail.com wrote: Hi! I'm trying to make a search query with GEOCODE params but this is not working propperly in Chile. I created this geolocalizated tweet with echofon: http://twitter.com/DanielAtik/status/18794641441 As you may see here is the lat, lon of this tweet: http://maps.google.com/maps?q=-33.437790,-70.635895 But if I make a search with search API this tweet does not appears as you can see: http://search.twitter.com/search.json?geocode=-33.437790,-70.635895,2km or for delimeted more: http://search.twitter.com/search.json?geocode=-33.437790,-70.635895,2... As you may see at returned JSON, the tweets has not GEO values. Is there anything wrong?? Any help may be appreciated ;) You must make tests inhttp://metaki.com Daniel
[twitter-dev] In Reply To
I believe this has been discussed before here, so forgive me if this is redundant. http://groups.google.com/group/twitter-development-talk/browse_thread/thread/bf32ca8ee0081df1/6f034d69cb45b892 I would like to build a chain of replies originating from a single tweet. The user will look at the first tweet, then be presented with the replies to this tweet and be able to move along the chain from the head down the branches. What would be the best way of implementing this? Requiring users to include a hashtag then periodically searching and keeping a local database of which tweets are in_reply_to which?