Re: [twitter-dev] Failed to validate oauth signature and token
Please check your Base String at http://quonos.nl/oauthTester/. You seem to be missing the between the parameters. I also see other issues, but the signature checker will reveal those to you as well. Tom On 2/9/11 12:15 AM, Dale wrote: I am attempting to set up a ColdFusion script to do auto updates to Twitter when a new article is posted to our CMS. I have been having trouble getting the request token and keep getting the Failed to validate oauth signature and token error message when making attempts. Here is my request string... POSThttp%3A%2F%2Fapi%2Etwitter%2Ecom%2Foauth%2Frequest%5Ftoken%26oauth %5Fconsumer%5Fkey%XXX%26oauth%5Fsignature%5Fmethod%3DHMAC %2DSHA1%26oauth%5Ftimestamp%3D1297206414%26oauth%5Fversion %3D1%2E0%26oauth%5Fnonce%3D556979%2E9534 I have verified that the time stamp is the the correct epoch time in my time zone (PST). Any help would be appreciated. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] IP's rate limit using Twitter API?
Hello, I am having one application which is calling statuses/user_timeline method using XML without authentication so I am getting 150 requests per hour for my IP. Is there any way so that I can get how many requests are remaining for my IP for that particular hour? Also is there any way to overcome this limitation of 150 requests per hour apart from whitelisting? Thank you. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] count parameter - documentation says 200 limit, correct?
Hi, I'm trying to figure out how to fetch the maximum number of tweets. From http://dev.twitter.com/doc/get/statuses/user_timeline: This method is can only return up to 3200 statuses. If include_rts is set only 3200 statuses, including retweets if they exist, can be returned. It seems logical that the 'count' parameter allows you to specify a number of tweets to fetch, up to the maximum states (3200). Except, the docs read: Specifies the number of records to retrieve. Must be less than or equal to 200. http://api.twitter.com/1/statuses/user_timeline.json?count=5; I'm wondering if that's a type and that the value must infact be less than or equal to 3200 ? Maybe I'm reading this wrong, but I can't see a simple way to do a first-time request, number of tweets available being unknown, and to specify that you'd like to simply fetch as many as the API will allow. Am I barking up the wrong tree here? Cheers John -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Posting special character in posting new tweet doesn't support.
api : http://api.twitter.com/version/statuses/update.xml When I try to post new tweet without special character, it works (i.e. hello). but If add the text with special character (hello !!). It shows invalid signature and basic authentication popup. Please guide me. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] count parameter - documentation says 200 limit, correct?
You need to use the next_cursor_str and page through the results. They don't want to slam out the data for 3200 tweets all at once. -edward. On Feb 9, 2011, at 6:26 AM, johnnygri wrote: Hi, I'm trying to figure out how to fetch the maximum number of tweets. From http://dev.twitter.com/doc/get/statuses/user_timeline: This method is can only return up to 3200 statuses. If include_rts is set only 3200 statuses, including retweets if they exist, can be returned. It seems logical that the 'count' parameter allows you to specify a number of tweets to fetch, up to the maximum states (3200). Except, the docs read: Specifies the number of records to retrieve. Must be less than or equal to 200. http://api.twitter.com/1/statuses/user_timeline.json?count=5; I'm wondering if that's a type and that the value must infact be less than or equal to 3200 ? Maybe I'm reading this wrong, but I can't see a simple way to do a first-time request, number of tweets available being unknown, and to specify that you'd like to simply fetch as many as the API will allow. Am I barking up the wrong tree here? Cheers John -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk Regards, Edward Hotchkiss edw...@edwardhotchkiss.com http://www.edwardhotchkiss.com/ -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Update background image using oAuth c#
Hi. I tried to update my background using oath. But i have 401 unauthorized error var credentials = new OAuthCredentials { Type = OAuthType.ProtectedResource, SignatureMethod = OAuthSignatureMethod.HmacSha1, ParameterHandling = OAuthParameterHandling.HttpAuthorizationHeader, ConsumerKey = _consumerKey, ConsumerSecret = _consumerSecret, Token = _oauth_access_token, TokenSecret = _oauth_access_token_secret, Version = 1.0, }; var client = new RestClient { Authority = http://api.twitter.com;, Credentials = credentials, }; var request = new RestRequest { Path = 1/account/ update_profile_background_image.json, Method = WebMethod.Post }; var webClient = new WebClient(); byte[] imageBytes = webClient.DownloadData(http:// www.google.com/images/logos/ps_logo2.png); request.AddFile(file1, ps_logo2.png, new MemoryStream(imageBytes), image/png); RestResponse postResponse = client.Request(request); Can you help me? -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Embedded images in tweets
I've searched pretty extensively and can't find the information I'm looking for, but I apologize if this has already been asked. I'm trying to build a custom image hosting service, but I'm having trouble getting the image to display in-tweet like services such as yfrog and twitpic do. Is that a feature specific to those services or am I doing something wrong? Thanks, -Jansson -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Twitter geocoords + gmap is erratic, why?
Hi, sorry if this has been posted before in here, I can't seem to find anyone posting about this particular setup: I have a website with a google map which is retrieving the coords from a twitter's latest status, however the location of the google map rarely matches the location of where the user tweeted from, sometimes being half a mile off in a random direction. What is this due by? Here is the code I'm using: $twfeed = @file_get_contents('http://api.twitter.com/1/users/show/ taimmobile.json'); if($json){ $data = json_decode($twfeed, false); $lat = $data-status-geo-coordinates[0]; $lon = $data-status-geo-coordinates[1]; echo div id='map'h3Where are we?/h3BR.SGMprintmap($lat, $lon,18,TERRAIN,null,null)./div; } (SGMprintmap is a function taken from a WP plug: https://svn.wp-plugins.org/simple-google-map/trunk/simple-google-map.php) -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: Twitter geocoords + gmap is erratic, why?
Furthermore, here is a tweet that shows what's going on: http://twitter.com/#!/TaimMobile/status/35349967103209472 Tweeted from 51st Street (btw 6/7th ave), yet the map shows 34th street. Obviously the map on the website shows the same incorrect data: http://www.taimmobile.com Is this the iphone's tracking that is incorrect? Many thanks On Feb 9, 12:05 pm, David Terranova da...@davidterranova.com wrote: Hi, sorry if this has been posted before in here, I can't seem to find anyone posting about this particular setup: I have a website with a google map which is retrieving the coords from a twitter's latest status, however the location of the google map rarely matches the location of where the user tweeted from, sometimes being half a mile off in a random direction. What is this due by? Here is the code I'm using: $twfeed = @file_get_contents('http://api.twitter.com/1/users/show/ taimmobile.json'); if($json){ $data = json_decode($twfeed, false); $lat = $data-status-geo-coordinates[0]; $lon = $data-status-geo-coordinates[1]; echo div id='map'h3Where are we?/h3BR.SGMprintmap($lat, $lon,18,TERRAIN,null,null)./div; } (SGMprintmap is a function taken from a WP plug:https://svn.wp-plugins.org/simple-google-map/trunk/simple-google-map.php) -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: Failed to validate oauth signature and token
Hi Matt, I have fixed a bunch of the formatting issues and it now validates in the OAuth tester app that Tom posted, but I am still getting an error when posting. Here is my updated request string. POSThttps%3A%2F%2Fapi.twitter.com%2Foauth %2Frequest_tokenoauth_consumer_key%3DX%26oauth_nonce %3D430489.541778%26oauth_signature_method%3DHMAC %2DSHA1%26oauth_timestamp%3D1297274801%26oauth_version%3D1.0 Here is the error returned. Failed to validate oauth signature and token Here is the return header. HTTP/1.1 401 Unauthorized Connection: close Expires: Tue, 31 Mar 1981 05:00:00 GMT Date: Wed, 09 Feb 2011 18:06:45 GMT Server: hi X-Runtime: 0.00454 Vary: Accept-Encoding X-Transaction: Wed Feb 09 18:06:45 + 2011-87785-54083 Pragma: no-cache Status: 401 Unauthorized Cache- Control: no-cache, no-store, must-revalidate, pre-check=0, post- check=0 Set-Cookie: k=[MY IP ADDRESS].1297274805118711; path=/; expires=Wed, 16-Feb-11 18:06:45 GMT; domain=.twitter.com Set-Cookie: guest_id=129727480520719350; path=/; expires=Fri, 11 Mar 2011 18:06:45 GMT Set-Cookie: _twitter_sess=BAh7CDoPY3JlYXRlZF9hdGwrCNibmgsuAToHaWQiJTYwMDg4OGQ2N2ZlMTBm %250AY2I1NWFiNGRmNWRiY2I2N2UxIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVy %250AOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--0e5cbcd15c652517645f3fb4a648abeabec997e9; domain=.twitter.com; path=/; HttpOnly X-Revision: DEV Last-Modified: Wed, 09 Feb 2011 18:06:45 GMT Content-Type: text/html; charset=utf-8 Any further ideas? -Dale On Feb 8, 5:34 pm, Matt Harris thematthar...@twitter.com wrote: Hi Dale, There are a number of things that can cause OAuth to fail. We've clarified our error messages to try and make it easier to know which bit is the cause of the problem. For timestamps we return the error message Timestamp out of bounds. In your case the error message is saying your signature is incorrect. This means either your basestring is incorrectly encoded, badly formatted or doesn't match the API request URL and parameters you are sending. Looking at your basestring I notice that you have a lot of additional encoding going on and are missing the first between POST and http. To help you get it right I recommended checking out our authentication overview page on our developer resources site. Specifically the section on signing requests and acquiring a request token: http://dev.twitter.com/pages/auth#signing-requests http://dev.twitter.com/pages/auth#request-token Best, @themattharris Developer Advocate, Twitterhttp://twitter.com/themattharris On Tue, Feb 8, 2011 at 3:58 PM, Dale d...@dealflow.com wrote: I just set the system clock on my Win 2003 server to net time / setsntp:0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org as I saw a lot of folks saying this fixed their issues, but it had no effect. On Feb 8, 3:15 pm, Dale d...@dealflow.com wrote: I am attempting to set up a ColdFusion script to do auto updates to Twitter when a new article is posted to our CMS. I have been having trouble getting the request token and keep getting the Failed to validate oauth signature and token error message when making attempts. Here is my request string... POSThttp%3A%2F%2Fapi%2Etwitter%2Ecom%2Foauth%2Frequest%5Ftoken%26oauth %5Fconsumer%5Fkey%XXX%26oauth%5Fsignature%5Fmethod%3DHMAC %2DSHA1%26oauth%5Ftimestamp%3D1297206414%26oauth%5Fversion %3D1%2E0%26oauth%5Fnonce%3D556979%2E9534 I have verified that the time stamp is the the correct epoch time in my time zone (PST). Any help would be appreciated. -- Twitter developer documentation and resources:http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: @Mentions URL in PHP
Hey Leon - There's code at the link below that has worked for me in the past. I have since re-written it in JavaScript (using the same regular expressions) as I'm now 'building' tweets for display on the client side - but the expressions still work even in JS http://davidwalsh.name/linkify-twitter-feed That code will show you how to create links from 1) Links, 2) Screen Names and 3) Hashtags I, personally, removed the following from the screen name and hashtag expressions: (^|\s) ...which means match the beginning of the line or a space - however, I once saw a tweet that had this: .@screenname ...notice the period before the @? That's neither the beginning of the line nor a space, and the code as-is didn't linkify it, even though viewing the same tweet on twitter.com showed it as a link. Removing the (^|\s) allowed it to be linkified, and you're not often going to see an @ or an # in a tweet that isn't a screen name or a hashtag, so I think it's a fairly safe bet to take. Though, if anyone ever puts, say, an email address in a tweet, it'll treat it as a screen name if you don't have the (^|\s) in there... Hope that helps! On Feb 8, 11:26 pm, Leon Meijer l...@lmeijer.nl wrote: Hello all, Just gave it a quick google but no results so far, i'm looking for a PHP regular expression / script that scans a tweet for @ username, I'm not so good at regular expressions so does someone have a sample code that scans for @mentions and creates a URL to the users profile (which in my case will behttp://beta.TheNerdsOnline.nl/users/usernamewhere username is the Twitter screen_name). Regards, Leon -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: Home timeline returns different results from one pageload to another
Hey Matt - Thanks so much for offering to help! The screen name is @simplrtwitr - again, I have 1 tweet and am following my personal account (@unnecessarytwit) which has ~66 tweets. I'm going to reply again to just you with the OAuth credentials, in order to limit the number of people who has access to that info. I doubt it's common to post stuff like that in a public forum - though maybe keys/secrets can be regenerated later? On Feb 8, 10:01 pm, Matt Harris thematthar...@twitter.com wrote: Hi Craig, Can you you share the actual requests you are making, including the OAuth parameters you are sending. I can then take a look at what might be happening. Also, if you can let me know your screen_name I can see if I get the same response querying your user_timeline. Best, @themattharris Developer Advocate, Twitterhttp://twitter.com/themattharris On Tue, Feb 8, 2011 at 4:17 PM, craigpierce craigpie...@gmail.com wrote: Hello. I checked the bug ticket list, several pages back on this discussion list and the FAQ - I don't see this particular issue anywhere, but please forgive me if it has been discussed before (and please point me towards the solution!)... Facts: * I am using the TwitterOAuth PHP class fromhttp://abrah.am * I am creating a full Twitter client, not just a widget with my latest tweets * I am getting the home timeline from my app's Twitter account. So far I have 1 tweet and am following only my personal account which has 66 tweets * The page I'm testing with is a PHP page that only has a call to home_timeline that then var_dump's the result - that's all it's doing, nothing else * I have tried this call with various parameters (as follows, where $con is the TwitterOAuth object): $con-get(statuses/home_timeline); $con-get(statuses/home_timeline, array(include_rts = true)); $con-get(statuses/home_timeline, array(include_rts = true, count = 20)); Issue: When I refresh the page, about 80% of the time I get 3 tweets: my app account's 1 sent tweet and 2 from my personal account that are more recent than that one. The other 20% of the time I get 19 tweets: those 3 plus 16 from my personal account from before my app account's one sent tweet. These results remain consistent no matter what I try: it's either 3 or 19, never 20. My app account's home timeline on Twitter.com shows me 3, and has never shown me more, no matter how often I refresh. Is it my choice of PHP class? If so, is there a better option? And if not, then what gives?! Also, how many tweets *should* be returned? Twitter's website only shows me 3, but what if I want to see tweets in my home timeline from before I was Twitter born? Thanks in advance! Craig -- Twitter developer documentation and resources:http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: Home timeline returns different results from one pageload to another
I will say this as well - I tried all the same tests with my personal account and always got back 20 results. Maybe this *is* an issue on Twitter's side, with accounts that have a small number of tweets? On Feb 8, 10:01 pm, Matt Harris thematthar...@twitter.com wrote: Hi Craig, Can you you share the actual requests you are making, including the OAuth parameters you are sending. I can then take a look at what might be happening. Also, if you can let me know your screen_name I can see if I get the same response querying your user_timeline. Best, @themattharris Developer Advocate, Twitterhttp://twitter.com/themattharris On Tue, Feb 8, 2011 at 4:17 PM, craigpierce craigpie...@gmail.com wrote: Hello. I checked the bug ticket list, several pages back on this discussion list and the FAQ - I don't see this particular issue anywhere, but please forgive me if it has been discussed before (and please point me towards the solution!)... Facts: * I am using the TwitterOAuth PHP class fromhttp://abrah.am * I am creating a full Twitter client, not just a widget with my latest tweets * I am getting the home timeline from my app's Twitter account. So far I have 1 tweet and am following only my personal account which has 66 tweets * The page I'm testing with is a PHP page that only has a call to home_timeline that then var_dump's the result - that's all it's doing, nothing else * I have tried this call with various parameters (as follows, where $con is the TwitterOAuth object): $con-get(statuses/home_timeline); $con-get(statuses/home_timeline, array(include_rts = true)); $con-get(statuses/home_timeline, array(include_rts = true, count = 20)); Issue: When I refresh the page, about 80% of the time I get 3 tweets: my app account's 1 sent tweet and 2 from my personal account that are more recent than that one. The other 20% of the time I get 19 tweets: those 3 plus 16 from my personal account from before my app account's one sent tweet. These results remain consistent no matter what I try: it's either 3 or 19, never 20. My app account's home timeline on Twitter.com shows me 3, and has never shown me more, no matter how often I refresh. Is it my choice of PHP class? If so, is there a better option? And if not, then what gives?! Also, how many tweets *should* be returned? Twitter's website only shows me 3, but what if I want to see tweets in my home timeline from before I was Twitter born? Thanks in advance! Craig -- Twitter developer documentation and resources:http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Re: Twitter geocoords + gmap is erratic, why?
Hi David, We use the lat/lon sent to us when the Tweet is created. How that lat/lon is retrieved depends on the device being used to send the Tweet. The content of the Tweet is not used to populate the lat/lon coordinates. A couple of reasons for why it could be reported like this: * The user is travelling to the location they Tweeted about * The device being used has the wrong GPS co-ordinates. (When I visited New York my iPhone struggled to get an accurate location) * They were on Wifi and the device looked up the IP and found those co-ordinates Hope that answers your question, @themattharris Developer Advocate, Twitter http://twitter.com/themattharris On Wed, Feb 9, 2011 at 9:19 AM, David Terranova da...@davidterranova.comwrote: Furthermore, here is a tweet that shows what's going on: http://twitter.com/#!/TaimMobile/status/35349967103209472 Tweeted from 51st Street (btw 6/7th ave), yet the map shows 34th street. Obviously the map on the website shows the same incorrect data: http://www.taimmobile.com Is this the iphone's tracking that is incorrect? Many thanks On Feb 9, 12:05 pm, David Terranova da...@davidterranova.com wrote: Hi, sorry if this has been posted before in here, I can't seem to find anyone posting about this particular setup: I have a website with a google map which is retrieving the coords from a twitter's latest status, however the location of the google map rarely matches the location of where the user tweeted from, sometimes being half a mile off in a random direction. What is this due by? Here is the code I'm using: $twfeed = @file_get_contents('http://api.twitter.com/1/users/show/ taimmobile.json'); if($json){ $data = json_decode($twfeed, false); $lat = $data-status-geo-coordinates[0]; $lon = $data-status-geo-coordinates[1]; echo div id='map'h3Where are we?/h3BR.SGMprintmap($lat, $lon,18,TERRAIN,null,null)./div; } (SGMprintmap is a function taken from a WP plug: https://svn.wp-plugins.org/simple-google-map/trunk/simple-google-map.php) -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Re: @Mentions URL in PHP
If you include the parameter include_entities=1 in your request we will return an extra object in the response telling you where the hashtags, mentions and URLs are in the Tweet. You can learn more about Tweet Entities on our developer resources site: http://dev.twitter.com/pages/tweet_entities Best, @themattharris Developer Advocate, Twitter http://twitter.com/themattharris On Wed, Feb 9, 2011 at 10:21 AM, craigpierce craigpie...@gmail.com wrote: Hey Leon - There's code at the link below that has worked for me in the past. I have since re-written it in JavaScript (using the same regular expressions) as I'm now 'building' tweets for display on the client side - but the expressions still work even in JS http://davidwalsh.name/linkify-twitter-feed That code will show you how to create links from 1) Links, 2) Screen Names and 3) Hashtags I, personally, removed the following from the screen name and hashtag expressions: (^|\s) ...which means match the beginning of the line or a space - however, I once saw a tweet that had this: .@screenname ...notice the period before the @? That's neither the beginning of the line nor a space, and the code as-is didn't linkify it, even though viewing the same tweet on twitter.com showed it as a link. Removing the (^|\s) allowed it to be linkified, and you're not often going to see an @ or an # in a tweet that isn't a screen name or a hashtag, so I think it's a fairly safe bet to take. Though, if anyone ever puts, say, an email address in a tweet, it'll treat it as a screen name if you don't have the (^|\s) in there... Hope that helps! On Feb 8, 11:26 pm, Leon Meijer l...@lmeijer.nl wrote: Hello all, Just gave it a quick google but no results so far, i'm looking for a PHP regular expression / script that scans a tweet for @ username, I'm not so good at regular expressions so does someone have a sample code that scans for @mentions and creates a URL to the users profile (which in my case will behttp://beta.TheNerdsOnline.nl/users/usernamewhere username is the Twitter screen_name). Regards, Leon -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Re: Twitter geocoords + gmap is erratic, why?
Thanks for the tips Matt. The people using this system definitely send the tweet when they reach their final destination (they're run a food truck), and don't use wifi. They are using both iPhone and Android phones to send these tweets, so the only answer is that their devices must be sending incorrect GPS data. However... why should this happen when the iPhone Map application is tracking accurately, at the same time when sending a status message to Twitter? This is why I'm confused and wondering if actually there's a process in between the device and Twitter that gets things muddled? Especially as I get a completely different result when using Google Latitude, also erratic (mostly incorrect) but in a completely different way to Twitter's result. Thanks again, David David Terranova davidterranova.com | rebelrave.tv On Feb 9, 2011, at 2:01 PM, Matt Harris wrote: Hi David, We use the lat/lon sent to us when the Tweet is created. How that lat/lon is retrieved depends on the device being used to send the Tweet. The content of the Tweet is not used to populate the lat/lon coordinates. A couple of reasons for why it could be reported like this: * The user is travelling to the location they Tweeted about * The device being used has the wrong GPS co-ordinates. (When I visited New York my iPhone struggled to get an accurate location) * They were on Wifi and the device looked up the IP and found those co-ordinates Hope that answers your question, @themattharris Developer Advocate, Twitter http://twitter.com/themattharris On Wed, Feb 9, 2011 at 9:19 AM, David Terranova da...@davidterranova.com wrote: Furthermore, here is a tweet that shows what's going on: http://twitter.com/#!/TaimMobile/status/35349967103209472 Tweeted from 51st Street (btw 6/7th ave), yet the map shows 34th street. Obviously the map on the website shows the same incorrect data: http://www.taimmobile.com Is this the iphone's tracking that is incorrect? Many thanks On Feb 9, 12:05 pm, David Terranova da...@davidterranova.com wrote: Hi, sorry if this has been posted before in here, I can't seem to find anyone posting about this particular setup: I have a website with a google map which is retrieving the coords from a twitter's latest status, however the location of the google map rarely matches the location of where the user tweeted from, sometimes being half a mile off in a random direction. What is this due by? Here is the code I'm using: $twfeed = @file_get_contents('http://api.twitter.com/1/users/show/ taimmobile.json'); if($json){ $data = json_decode($twfeed, false); $lat = $data-status-geo-coordinates[0]; $lon = $data-status-geo-coordinates[1]; echo div id='map'h3Where are we?/h3BR.SGMprintmap($lat, $lon,18,TERRAIN,null,null)./div; } (SGMprintmap is a function taken from a WP plug:https://svn.wp-plugins.org/simple-google-map/trunk/simple-google-map.php) -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Where to send questions re: terms of service?
Hi, I've got a case where I'm not sure whether a potential use would conflict with terms of service. I'd rather not get into details on public forum ;) but I can if this is the only place for it. But I'm wondering if there is someone or somewhere to ask questions? i.e. re: If you are doing something prohibited by the Rules, talk to us about whether we should make a change or give you an exception. -- Who is us? thanks, Miles -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Where to send questions re: terms of service?
Hi Miles, While this public forum is great if you want to discuss the terms themselves with others, if you want to privately discuss API terms with Twitter, it's best to send a message to a...@twitter.com -- it might take a bit for you to get a response but the policy team will get your inquiry. That said, it's best to steer clear of anything explicitly prohibited in the terms and to follow the shoulds as closely as possible. Taylor @episod http://twitter.com/episod - Taylor Singletary - Twitter Developer Advocate On Wed, Feb 9, 2011 at 11:39 AM, Miles Parker milespar...@gmail.com wrote: Hi, I've got a case where I'm not sure whether a potential use would conflict with terms of service. I'd rather not get into details on public forum ;) but I can if this is the only place for it. But I'm wondering if there is someone or somewhere to ask questions? i.e. re: If you are doing something prohibited by the Rules, talk to us about whether we should make a change or give you an exception. -- Who is us? thanks, Miles -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Where to send questions re: terms of service?
Also Twitter Advocates (Especially @episod aka Taylor) have a policy of banning based on arbitrary attitudes, and personal dislikes. So essentially your App can be suspended for anything, even things outside the Rules of the Road, etc. - The Artist formerly known as @edwardhotchkiss On Feb 9, 2011, at 2:56 PM, Taylor Singletary wrote: Hi Miles, While this public forum is great if you want to discuss the terms themselves with others, if you want to privately discuss API terms with Twitter, it's best to send a message to a...@twitter.com -- it might take a bit for you to get a response but the policy team will get your inquiry. That said, it's best to steer clear of anything explicitly prohibited in the terms and to follow the shoulds as closely as possible. Taylor @episod - Taylor Singletary - Twitter Developer Advocate On Wed, Feb 9, 2011 at 11:39 AM, Miles Parker milespar...@gmail.com wrote: Hi, I've got a case where I'm not sure whether a potential use would conflict with terms of service. I'd rather not get into details on public forum ;) but I can if this is the only place for it. But I'm wondering if there is someone or somewhere to ask questions? i.e. re: If you are doing something prohibited by the Rules, talk to us about whether we should make a change or give you an exception. -- Who is us? thanks, Miles -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk Regards, Edward Hotchkiss edw...@edwardhotchkiss.com http://www.edwardhotchkiss.com/ -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Re: Twitter geocoords + gmap is erratic, why?
OK, thanks for the confirmation about how the data is being retrieved. From an API perspective we receive two parameters, lat and lon. Whatever the client sets those to is what the Tweet gets attributed to. Looking at that Tweet I see the Geo Point of reference for the Tweet you mentioned is: 40.7502328,-73.98779046 - http://maps.google.com/maps?f=qsource=s_qhl=engeocode=q=40.7502328,-73.98779046aq=sll=40.761593,-73.981311sspn=0.004709,0.004785ie=UTF8z=17 I then see another Tweet 4 hours later with the Geo Point of: 40.761411,-73.980603 - http://maps.google.com/maps?f=qsource=s_qhl=engeocode=q=40.761411,-73.980603aq=sll=56.752723,-109.335937sspn=28.256305,39.199219ie=UTF8z=17 The second location is in the 51st/52nd and 6th/7th block so it looks like they are in the right location the second time they Tweeted. This makes me think they were Tweeting on their way to the destination, or their device was stuck with a Geo point when the Tweet was created and then updated. The applications use whatever lat/lon is reported to them by the device. No manipulation takes place with the original Geo. The only inference we make is for the additional place information if it wasn't already supplied - the geo attribute is lot touched. Best, @themattharris Developer Advocate, Twitter http://twitter.com/themattharris On Wed, Feb 9, 2011 at 11:35 AM, David Terranova da...@davidterranova.comwrote: Thanks for the tips Matt. The people using this system definitely send the tweet when they reach their final destination (they're run a food truck), and don't use wifi. They are using both iPhone and Android phones to send these tweets, so the only answer is that their devices must be sending incorrect GPS data. However... why should this happen when the iPhone Map application is tracking accurately, at the same time when sending a status message to Twitter? This is why I'm confused and wondering if actually there's a process in between the device and Twitter that gets things muddled? Especially as I get a completely different result when using Google Latitude, also erratic (mostly incorrect) but in a completely different way to Twitter's result. Thanks again, David David Terranova *davidterranova.com | rebelrave.tv* On Feb 9, 2011, at 2:01 PM, Matt Harris wrote: Hi David, We use the lat/lon sent to us when the Tweet is created. How that lat/lon is retrieved depends on the device being used to send the Tweet. The content of the Tweet is not used to populate the lat/lon coordinates. A couple of reasons for why it could be reported like this: * The user is travelling to the location they Tweeted about * The device being used has the wrong GPS co-ordinates. (When I visited New York my iPhone struggled to get an accurate location) * They were on Wifi and the device looked up the IP and found those co-ordinates Hope that answers your question, @themattharris Developer Advocate, Twitter http://twitter.com/themattharris On Wed, Feb 9, 2011 at 9:19 AM, David Terranova da...@davidterranova.comwrote: Furthermore, here is a tweet that shows what's going on: http://twitter.com/#!/TaimMobile/status/35349967103209472 Tweeted from 51st Street (btw 6/7th ave), yet the map shows 34th street. Obviously the map on the website shows the same incorrect data: http://www.taimmobile.com Is this the iphone's tracking that is incorrect? Many thanks On Feb 9, 12:05 pm, David Terranova da...@davidterranova.com wrote: Hi, sorry if this has been posted before in here, I can't seem to find anyone posting about this particular setup: I have a website with a google map which is retrieving the coords from a twitter's latest status, however the location of the google map rarely matches the location of where the user tweeted from, sometimes being half a mile off in a random direction. What is this due by? Here is the code I'm using: $twfeed = @file_get_contents('http://api.twitter.com/1/users/show/ taimmobile.json'); if($json){ $data = json_decode($twfeed, false); $lat = $data-status-geo-coordinates[0]; $lon = $data-status-geo-coordinates[1]; echo div id='map'h3Where are we?/h3BR.SGMprintmap($lat, $lon,18,TERRAIN,null,null)./div; } (SGMprintmap is a function taken from a WP plug: https://svn.wp-plugins.org/simple-google-map/trunk/simple-google-map.php) -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this
[twitter-dev] Re: Where to send questions re: terms of service?
Hi Miles, I work on the API Policy team and monitor the messages at a...@twitter.com. We'd be happy to answer any questions you have about our policies or a specific feature you're thinking of. Brian Sutorius On Feb 9, 11:56 am, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi Miles, While this public forum is great if you want to discuss the terms themselves with others, if you want to privately discuss API terms with Twitter, it's best to send a message to a...@twitter.com -- it might take a bit for you to get a response but the policy team will get your inquiry. That said, it's best to steer clear of anything explicitly prohibited in the terms and to follow the shoulds as closely as possible. Taylor @episod http://twitter.com/episod - Taylor Singletary - Twitter Developer Advocate On Wed, Feb 9, 2011 at 11:39 AM, Miles Parker milespar...@gmail.com wrote: Hi, I've got a case where I'm not sure whether a potential use would conflict with terms of service. I'd rather not get into details on public forum ;) but I can if this is the only place for it. But I'm wondering if there is someone or somewhere to ask questions? i.e. re: If you are doing something prohibited by the Rules, talk to us about whether we should make a change or give you an exception. -- Who is us? thanks, Miles -- Twitter developer documentation and resources:http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Search API intermittently returning invalid results
I've been using curl to access search.twitter.com and recently I've noticed that occasionally it is returning invalid tweets. I'm searching for a query-term that shows up very infrequently in the tweet stream, and am using the curl command: curl http://search.twitter.com/search.atom?q=query- termrpp=99result_type=recentsince_id=35409539146719234 What I've found is that about 99% of the time I get back an empty response, just the feed tag wrapped around the meta data for the query but no results. But if I just run the exact same curl command over and over again, occasionally I'll get a response with a full payload of 99 tweets, none of which have anything to do with my search terms. Subsequent executions of the same curl command return the response w/o any tweets in it. Its a little hard to explain, but I have a log file that shows: curl - no tweets curl - no tweets curl - no tweets curl - 99 unrelated tweets curl - no tweets All running the same command via cut-and-paste and all within the space of a few seconds. More often than not, it seems like the invalid tweets are all somehow related, as if I had gotten the response for some other active query. Anyone else seeing anything this problem? The log file is 16K compressed, let me know if you'd like me to send it in. Thanks, -Chris -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Re: Twitter geocoords + gmap is erratic, why?
On Wed, 9 Feb 2011 14:35:06 -0500, David Terranova da...@davidterranova.com wrote: Thanks for the tips Matt. The people using this system definitely send the tweet when they reach their final destination (they're run a food truck), and don't use wifi. They are using both iPhone and Android phones to send these tweets, so the only answer is that their devices must be sending incorrect GPS data. However... why should this happen when the iPhone Map application is tracking accurately, at the same time when sending a status message to Twitter? This is why I'm confused and wondering if actually there's a process in between the device and Twitter that gets things muddled? Especially as I get a completely different result when using Google Latitude, also erratic (mostly incorrect) but in a completely different way to Twitter's result. Thanks again, David I can't help you with iPhone - don't have one - but I can tell you that as of a few weeks ago, Twitter's native Android client was *not* correctly sensing location in real time, even though all three (WiFi, GPS and Verizon 3G) on my Verizon Droid Incredible were correctly configured and functioning, and the native Google tools like Maps function correctly. This is in the Portland, Oregon metro area. I didn't try mobile.twitter.com or any of the third-party Twitter clients. I've had spotty results with location on all Twitter clients on my Droid and have essentially given up. If I want to tweet with a correct location, I have to use my ChromeOS Cr-48 Notebook or my laptop running Linux via WiFi and often need to enter location manually. I have neither the patience nor the tools to diagnose location issues with three vendors - Twitter, Verizon and Google! My belief is that both business and engineering partnerships between the three vendors will be required for correct functioning of Twitter location on my device. I suspect similar is required for iPhone - Apple, Twitter and ATT must have a *formal* partnership arrangement for stuff to work. Meanwhile, I'd suggest that if you have the time, diagnose this as far as possible and file a bug on Twitter's site. *Maybe* it's simply a Twitter issue, but I rather doubt it, given the number of things I tried on my Droid before giving up. -- http://twitter.com/znmeb http://borasky-research.net A mathematician is a device for turning coffee into theorems. -- Paul Erdős -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Content Provider
Any chance of adding a ContentProvider to Android so that developers can interact with tweets without having to poll Twitter constantly? -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Streaming API maintenance: brief delivery pause and an increased likelihood for duplicate tweets
We are performing a maintenance activity shortly that will increase the likelihood of duplicate tweets and other messages on all Streaming APIs: User Streams, Site Streams, and stream.twitter.com. There may also be a brief pause in delivery. No tweets or other messages will be lost during this maintenance event. The maintenance window is predicted to be approximately 2 minutes long and may occur between 1:15pm PST / 21:15 UTC and 3:30pm PST / 23:15 UTC. Note that this possibility of duplications has always been documented on the Streaming API at: http://dev.twitter.com/pages/streaming_api_concepts#quality-of-service. -John Kalucki Twitter, Inc. http://twitter.com/jkalucki -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: Home timeline returns different results from one pageload to another
Matt (and to anyone else who might have been following this) - I have been, for about the last 15 minutes or so, doing some work on my client, and I noticed that I was getting what looked like a full set of results back. After running my test page a few times (as before, including clearing my browser cache and such), I am, in fact, getting a full 20 tweets back in my history call now. Thanks a million, whatever you guys did!! It's so nice to know that, going forward, this was just a hiccup and not to be expected behavior :) On Feb 9, 10:49 am, craigpierce craigpie...@gmail.com wrote: I will say this as well - I tried all the same tests with my personal account and always got back 20 results. Maybe this *is* an issue on Twitter's side, with accounts that have a small number of tweets? On Feb 8, 10:01 pm, Matt Harris thematthar...@twitter.com wrote: Hi Craig, Can you you share the actual requests you are making, including the OAuth parameters you are sending. I can then take a look at what might be happening. Also, if you can let me know your screen_name I can see if I get the same response querying your user_timeline. Best, @themattharris Developer Advocate, Twitterhttp://twitter.com/themattharris On Tue, Feb 8, 2011 at 4:17 PM, craigpierce craigpie...@gmail.com wrote: Hello. I checked the bug ticket list, several pages back on this discussion list and the FAQ - I don't see this particular issue anywhere, but please forgive me if it has been discussed before (and please point me towards the solution!)... Facts: * I am using the TwitterOAuth PHP class fromhttp://abrah.am * I am creating a full Twitter client, not just a widget with my latest tweets * I am getting the home timeline from my app's Twitter account. So far I have 1 tweet and am following only my personal account which has 66 tweets * The page I'm testing with is a PHP page that only has a call to home_timeline that then var_dump's the result - that's all it's doing, nothing else * I have tried this call with various parameters (as follows, where $con is the TwitterOAuth object): $con-get(statuses/home_timeline); $con-get(statuses/home_timeline, array(include_rts = true)); $con-get(statuses/home_timeline, array(include_rts = true, count = 20)); Issue: When I refresh the page, about 80% of the time I get 3 tweets: my app account's 1 sent tweet and 2 from my personal account that are more recent than that one. The other 20% of the time I get 19 tweets: those 3 plus 16 from my personal account from before my app account's one sent tweet. These results remain consistent no matter what I try: it's either 3 or 19, never 20. My app account's home timeline on Twitter.com shows me 3, and has never shown me more, no matter how often I refresh. Is it my choice of PHP class? If so, is there a better option? And if not, then what gives?! Also, how many tweets *should* be returned? Twitter's website only shows me 3, but what if I want to see tweets in my home timeline from before I was Twitter born? Thanks in advance! Craig -- Twitter developer documentation and resources:http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Mentions AND DM
Hello, I use the api for a clint in Brazil has 6,000 followers, the client needs to do promotion for each individual customer, think about sending mentions, since the dm has a limit of 250 per day, we wanted to create another User and use to send User mentions that, since the limit of 6000 per day, but the twitter suspend the User, any have any solution, such as sending mentions without being suspended? or some other idea tks Carlos Eduardo -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Mentions AND DM
My first recommendation is to read the Automation Best Practices guide we have, if you haven't already. Lots of tips about mass @mentions and mass DMing in there: http://support.twitter.com/entries/76915-automation-rules-and-best-practices If you have any specific questions or guidelines you're wondering about, I'm happy to help. @episod http://twitter.com/episod - Taylor Singletary - Twitter Developer Advocate On Wed, Feb 9, 2011 at 2:50 PM, Carlos Eduardo carlos@gmail.com wrote: Hello, I use the api for a clint in Brazil has 6,000 followers, the client needs to do promotion for each individual customer, think about sending mentions, since the dm has a limit of 250 per day, we wanted to create another User and use to send User mentions that, since the limit of 6000 per day, but the twitter suspend the User, any have any solution, such as sending mentions without being suspended? or some other idea tks Carlos Eduardo -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Re: Home timeline returns different results from one pageload to another
Hi Craig, Glad it's all working for you now, and thanks for letting us know. Best, @themattharris Developer Advocate, Twitter http://twitter.com/themattharris On Wed, Feb 9, 2011 at 2:49 PM, craigpierce craigpie...@gmail.com wrote: Matt (and to anyone else who might have been following this) - I have been, for about the last 15 minutes or so, doing some work on my client, and I noticed that I was getting what looked like a full set of results back. After running my test page a few times (as before, including clearing my browser cache and such), I am, in fact, getting a full 20 tweets back in my history call now. Thanks a million, whatever you guys did!! It's so nice to know that, going forward, this was just a hiccup and not to be expected behavior :) On Feb 9, 10:49 am, craigpierce craigpie...@gmail.com wrote: I will say this as well - I tried all the same tests with my personal account and always got back 20 results. Maybe this *is* an issue on Twitter's side, with accounts that have a small number of tweets? On Feb 8, 10:01 pm, Matt Harris thematthar...@twitter.com wrote: Hi Craig, Can you you share the actual requests you are making, including the OAuth parameters you are sending. I can then take a look at what might be happening. Also, if you can let me know your screen_name I can see if I get the same response querying your user_timeline. Best, @themattharris Developer Advocate, Twitterhttp://twitter.com/themattharris On Tue, Feb 8, 2011 at 4:17 PM, craigpierce craigpie...@gmail.com wrote: Hello. I checked the bug ticket list, several pages back on this discussion list and the FAQ - I don't see this particular issue anywhere, but please forgive me if it has been discussed before (and please point me towards the solution!)... Facts: * I am using the TwitterOAuth PHP class fromhttp://abrah.am * I am creating a full Twitter client, not just a widget with my latest tweets * I am getting the home timeline from my app's Twitter account. So far I have 1 tweet and am following only my personal account which has 66 tweets * The page I'm testing with is a PHP page that only has a call to home_timeline that then var_dump's the result - that's all it's doing, nothing else * I have tried this call with various parameters (as follows, where $con is the TwitterOAuth object): $con-get(statuses/home_timeline); $con-get(statuses/home_timeline, array(include_rts = true)); $con-get(statuses/home_timeline, array(include_rts = true, count = 20)); Issue: When I refresh the page, about 80% of the time I get 3 tweets: my app account's 1 sent tweet and 2 from my personal account that are more recent than that one. The other 20% of the time I get 19 tweets: those 3 plus 16 from my personal account from before my app account's one sent tweet. These results remain consistent no matter what I try: it's either 3 or 19, never 20. My app account's home timeline on Twitter.com shows me 3, and has never shown me more, no matter how often I refresh. Is it my choice of PHP class? If so, is there a better option? And if not, then what gives?! Also, how many tweets *should* be returned? Twitter's website only shows me 3, but what if I want to see tweets in my home timeline from before I was Twitter born? Thanks in advance! Craig -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Mentions AND DM
Taylor Thanks for the reply, he had read in Automation Best Practices guide, is there a nice way of asking for a permission for that User twitter @ Programa_dotz which now has 6900 users can use only his followers to send some information different for each serguidor? promotion because there is different for each region or profile, sorry for the English now used google to talk to you tks Carlos On Wed, Feb 9, 2011 at 8:57 PM, Taylor Singletary taylorsinglet...@twitter.com wrote: My first recommendation is to read the Automation Best Practices guide we have, if you haven't already. Lots of tips about mass @mentions and mass DMing in there: http://support.twitter.com/entries/76915-automation-rules-and-best-practices If you have any specific questions or guidelines you're wondering about, I'm happy to help. @episod http://twitter.com/episod - Taylor Singletary - Twitter Developer Advocate On Wed, Feb 9, 2011 at 2:50 PM, Carlos Eduardo carlos@gmail.comwrote: Hello, I use the api for a clint in Brazil has 6,000 followers, the client needs to do promotion for each individual customer, think about sending mentions, since the dm has a limit of 250 per day, we wanted to create another User and use to send User mentions that, since the limit of 6000 per day, but the twitter suspend the User, any have any solution, such as sending mentions without being suspended? or some other idea tks Carlos Eduardo -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: Posting special character in posting new tweet doesn't support.
Are you url encoding the Tweet text? -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Who retweeted me?
If, through a web browesr, I click on Retweets - Your Tweets retweeted, a particular tweet of mine shows up. Normally, when you then click on that Tweet, it shows the person/people who have retweeted in. In this case, though, it is not showing anyone as having retweeted me. Does this mean, perhaps, that whoever retweeted me then undid the retweet? Has anyone else seen this? Many thanks! Paul -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] OAuth validation failure
I am attempting to set up a ColdFusion script to do auto updates to Twitter when a new article is posted to our CMS. I have been having trouble getting the request token and keep getting the Failed to validate oauth signature and token error message when making attempts. Here is my updated request string. POSThttps%3A%2F%2Fapi.twitter.com%2Foauth %2Frequest_tokenoauth_consumer_key%3DX%26oauth_nonce %3D430489.541778%26oauth_signature_method%3DHMAC %2DSHA1%26oauth_timestamp%3D1297274801%26oauth_version%3D1.0 Here is the error returned. Failed to validate oauth signature and token Here is the return header. HTTP/1.1 401 Unauthorized Connection: close Expires: Tue, 31 Mar 1981 05:00:00 GMT Date: Wed, 09 Feb 2011 18:06:45 GMT Server: hi X- Runtime: 0.00454 Vary: Accept-Encoding X-Transaction: Wed Feb 09 18:06:45 + 2011-87785-54083 Pragma: no-cache Status: 401 Unauthorized Cache- Control: no-cache, no-store, must-revalidate, pre-check=0, post- check=0 Set-Cookie: k=[MY IP ADDRESS].1297274805118711; path=/; expires=Wed, 16-Feb-11 18:06:45 GMT; domain=.twitter.com Set-Cookie: guest_id=129727480520719350; path=/; expires=Fri, 11 Mar 2011 18:06:45 GMT Set-Cookie: _twitter_sess=BAh7CDoPY3JlYXRlZF9hdGwrCNibmgsuAToHaWQiJTYwMDg4OGQ2N2ZlMTBm %250AY2I1NWFiNGRmNWRiY2I2N2UxIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVy %250AOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--0e5cbcd15c652517645f3fb4a648 abeabec997e9; domain=.twitter.com; path=/; HttpOnly X-Revision: DEV Last-Modified: Wed, 09 Feb 2011 18:06:45 GMT Content-Type: text/html; charset=utf-8 -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Promoted Trend Rollover Time?
I live in the Pacific Time Zone, and I've noticed that Twitter's Promoted Trend rolls over to a new trend right about midnight my time. Is this a policy thing, or just a coincidence? And is it always midnight Pacific Time, or midnight in the viewer's time? -- http://twitter.com/znmeb http://borasky-research.net A mathematician is a device for turning coffee into theorems. -- Paul Erdős -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: Is includes_rts=true for statuses/mentions broken?
I've seen the same behavior with the include_rts parameter. I have tried passing the values 'true', 't', and '1' with no success. On Feb 8, 7:15 pm, Anil Chawla ani...@gmail.com wrote: It's been a while but I want to follow up on this because we still have the issue. Is anyone able to pull native retweets when calling the statuses/mentions endpoint? An indication that includes_rts either works for you or doesn't work would be great. Thanks, -Anil On Dec 14 2010, 11:44 am, Anil Chawla ani...@gmail.com wrote: I've also been facing this issue for quite a long time. I've told myself that this can't be a problem with the API (since nobody else is complaining) but I can't see what is wrong on our end. For example, I have the following status that was retweeted a few times: http://twitter.com/#!/anilchawla/status/14437959797313536 This is the request URL that is generated when I request my mentions using count=200, include_rts=true, and since_id = 13978625736970241 (OAuth tokens omitted):https://api.twitter.com/1/statuses/mentions.json?count=200include_rt... The four mentions of the above status are not present in the response even though those retweets and the original status have an ID greater than since_id. Omitting count and since_id does not make a difference. As a work-around, we have to pull both statuses/mentions and statuses/retweets_of_me and merge them together. It's hard to believe that everyone else has been doing the same and ignoring this API parameter. Any idea what the issue is? -Anil -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Data-expanded-url attribute
Hello, I have a bunch of shortened urls which are resolved/redirected to full urls by my webapp. e.g. http://dealush.com/sale/2wml resolves to http://dealush.com/shopping-sales/2wml/sydney-sale-8-off-at-catwalk-westfield-shopping-town-159-175-church-parramatta-sydney-nsw-2150 When I tweet the short URL, sometimes the data-expanded-url attribute is populated for the url and when I mouseover it I can see the full url. However sometimes it is not populated, and there is no data- expanded-url attribute at all! I am wondering if anyone can shed some light onto why it would be so. I am also thinking that this is affecting the counters on my tweet buttons, as tweets that do have an URL with the data-expanded-url attribute give a +1 for the counter, and those that do not have a data- expanded-url don't. Does something need to happen for the data-expanded-url value to populate? Or perhaps there something wrong with some of my URLS? Note: THe example URL above does have a data-expanded-url value. Thanks in advance, Carl PS - Please let me know if you need any additional information from me and it will be forthcoming! -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Re: Is includes_rts=true for statuses/mentions broken?
I think you have the wrong idea of what include_rts does. Include_rts is designed to include native retweets in timelines where default inclusion would break. For example /statuses/user_timeline expects all tweets to be from a user A. But if that user A has retweeted user B then user Bs tweets can be included user As user_timeline with include_rts. Include_rts has no effect on /statuses/mentions because the original tweet is already included due to the fact it is a mention. Abraham - Abraham Williams | Hacker Advocate | abrah.am @abraham https://twitter.com/abraham | github.com/abraham | blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. On Wed, Feb 9, 2011 at 21:00, Adam Duke adam.v.d...@gmail.com wrote: I've seen the same behavior with the include_rts parameter. I have tried passing the values 'true', 't', and '1' with no success. On Feb 8, 7:15 pm, Anil Chawla ani...@gmail.com wrote: It's been a while but I want to follow up on this because we still have the issue. Is anyone able to pull native retweets when calling the statuses/mentions endpoint? An indication that includes_rts either works for you or doesn't work would be great. Thanks, -Anil On Dec 14 2010, 11:44 am, Anil Chawla ani...@gmail.com wrote: I've also been facing this issue for quite a long time. I've told myself that this can't be a problem with the API (since nobody else is complaining) but I can't see what is wrong on our end. For example, I have the following status that was retweeted a few times: http://twitter.com/#!/anilchawla/status/14437959797313536 This is the request URL that is generated when I request my mentions using count=200, include_rts=true, and since_id = 13978625736970241 (OAuth tokens omitted): https://api.twitter.com/1/statuses/mentions.json?count=200include_rt... The four mentions of the above status are not present in the response even though those retweets and the original status have an ID greater than since_id. Omitting count and since_id does not make a difference. As a work-around, we have to pull both statuses/mentions and statuses/retweets_of_me and merge them together. It's hard to believe that everyone else has been doing the same and ignoring this API parameter. Any idea what the issue is? -Anil -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk