[twitter-dev] Minor bug in Application Settings / Configuration... (http://dev.twitter.com/apps)

2010-12-07 Thread Tim Bull
I've successfully implemented a few OAuth implementations with Twitter
now and was setting up a new application.  Got to the callback URL
when registering the app and thought nah, not sure what it will be,
will leave it blank and either enter it later or just pass
oauth_callback anyway.  So I saved the application with a blank
callback URL.

Turns out this was A bad idea TM.

I'm using the Ruby OAuth gem which is new to me, but I was getting the
following problems:

On my request token step - if I didn't pass an oauth_callback, it did
an OOB / PIN authentication for me.

If I did pass an oauth_callback it returned a 401.

Eventually I remembered about the callback URL I didn't create and
tried to change it.  Having not entered a callback URL in the first
place, it now seemed like I can't edit it at all.

So, eventually I tried to delete the application (fail whale), so I
just created a new one, and this time entered a Callback URL.

Changed the consumer keys and the exact same code now works perfectly
and the oauth_callback is doing exactly what I expected (which is
returning to a URL that's not the one registered with the App).

Looks like that step of registering the Callback URL is critical and
shouldn't be allowed to be left blank, although also I think if I pass
an oauth_callback even if it IS blank it should acknowledge it.

Cheers,

Tim

-- 
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: statuses/user_timeline count bug

2010-12-07 Thread L0rdJ
Hi Taylor,
But how can i get for example last 5 user`s tweets (without the
retweets)?

On 6 дек, 17:50, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 Hi L0rdJ,

 This is how the Twitter REST API count parameters work -- they are hopeful
 counts -- you won't get more than the count specified but you may get less.
 This is one reason you see many web-based Twitter clients utilize a More
 button approach rather than paged results. It's best to focus less on the
 literal count of results that you get back and instead on the content.

 TaylorOn Mon, Dec 6, 2010 at 4:37 AM, L0rdJ dolgushev.ser...@gmail.com 
 wrote:
  I found a bug in the Twitter API, but i can`t find where i can report
  in, so i decided report it to this group, with hope that somebody help
  me :)

  Seems like when i`m setting count parameter for statuses/
  user_timeline API call, but i`m not setting include_rts parameter.
  Returned statuses are limited including retweets. But retweets aren`t
  displayed.

  So if i have
  1. some tweet 1
  2. retweet to some tweet 1
  3. retweet to some tweet 1
  4. some tweet 2
  5. some tweet 3
  

  and i`m trying to get statuses/user_timeline with count = 3, and
  disabled include_rts. I got:
  1. Some tweet 1
  Instead of
  1. Some tweet 1
  2. Some tweet 2
  3. Some tweet 3

  --
  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: statuses/user_timeline count bug

2010-12-07 Thread Scott Wilcox
Use a count of 10 and trim on your end.

On 7 Dec 2010, at 11:29, L0rdJ wrote:

 Hi Taylor,
 But how can i get for example last 5 user`s tweets (without the
 retweets)?
 
 On 6 дек, 17:50, Taylor Singletary taylorsinglet...@twitter.com
 wrote:
 Hi L0rdJ,
 
 This is how the Twitter REST API count parameters work -- they are hopeful
 counts -- you won't get more than the count specified but you may get less.
 This is one reason you see many web-based Twitter clients utilize a More
 button approach rather than paged results. It's best to focus less on the
 literal count of results that you get back and instead on the content.
 
 TaylorOn Mon, Dec 6, 2010 at 4:37 AM, L0rdJ dolgushev.ser...@gmail.com 
 wrote:
 I found a bug in the Twitter API, but i can`t find where i can report
 in, so i decided report it to this group, with hope that somebody help
 me :)
 
 Seems like when i`m setting count parameter for statuses/
 user_timeline API call, but i`m not setting include_rts parameter.
 Returned statuses are limited including retweets. But retweets aren`t
 displayed.
 
 So if i have
 1. some tweet 1
 2. retweet to some tweet 1
 3. retweet to some tweet 1
 4. some tweet 2
 5. some tweet 3
 
 
 and i`m trying to get statuses/user_timeline with count = 3, and
 disabled include_rts. I got:
 1. Some tweet 1
 Instead of
 1. Some tweet 1
 2. Some tweet 2
 3. Some tweet 3

-- 
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: statuses/user_timeline count bug

2010-12-07 Thread L0rdJ
But if count 10 will return only 4 tweets? :)

On 7 дек, 13:36, Scott Wilcox sc...@dor.ky wrote:
 Use a count of 10 and trim on your end.

 On 7 Dec 2010, at 11:29, L0rdJ wrote:







  Hi Taylor,
  But how can i get for example last 5 user`s tweets (without the
  retweets)?

  On 6 дек, 17:50, Taylor Singletary taylorsinglet...@twitter.com
  wrote:
  Hi L0rdJ,

  This is how the Twitter REST API count parameters work -- they are 
  hopeful
  counts -- you won't get more than the count specified but you may get less.
  This is one reason you see many web-based Twitter clients utilize a More
  button approach rather than paged results. It's best to focus less on the
  literal count of results that you get back and instead on the content.

  TaylorOn Mon, Dec 6, 2010 at 4:37 AM, L0rdJ dolgushev.ser...@gmail.com 
  wrote:
  I found a bug in the Twitter API, but i can`t find where i can report
  in, so i decided report it to this group, with hope that somebody help
  me :)

  Seems like when i`m setting count parameter for statuses/
  user_timeline API call, but i`m not setting include_rts parameter.
  Returned statuses are limited including retweets. But retweets aren`t
  displayed.

  So if i have
  1. some tweet 1
  2. retweet to some tweet 1
  3. retweet to some tweet 1
  4. some tweet 2
  5. some tweet 3
  

  and i`m trying to get statuses/user_timeline with count = 3, and
  disabled include_rts. I got:
  1. Some tweet 1
  Instead of
  1. Some tweet 1
  2. Some tweet 2
  3. Some tweet 3

-- 
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] facebook javascript sdk: looking for similar features for twitter

2010-12-07 Thread flpldev
Does twitter have a Javascript SDK like facebook (http://
developers.facebook.com/docs/reference/javascript/)?

My goal is the following:
1. from a Flash application call javascript or otherwise that will
popup a login window  tweet window;
2. receive callbacks indicating success/fault;

The result of the callback will be used to award a user with points in
a game.

I have been able to easily implement this for facebook using the
facebook Javascript SDK.

What I like about the facebook solution is:
1. the display of the login/share is handled in a popup showing the
actual facebook login and  share options. I think this is a good thing
as it provides the visitor with more confidence the popup is
trusthworthy. Also the game is visible underneath the popup so the
user does not really leave the games flow.
2. the facebook Javascript SDK takes care of showing the popup and
returning callbacks, taking away work from me as a, Flash, developer
having to develop this system.

-- 
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: xAuth Request gives Error from samsung tv maple browser

2010-12-07 Thread Tom van der Woerdt
That code is really a mess, but I think I found a few issues and solved 
them. I'm not sure about the Signature itself, but the Base String is 
fine now.


I've attached a new version of your .html file. I won't paste the code 
here because it may break the code.


Tom

PS: I really recommend keeping your code clean. This file is a mess.



On 12/7/10 6:07 AM, umamahesh G. wrote:

HI Tom,
Thanks for you kind support.I had all required privileges from twitter
for my app.The thing is i can able to post the message from safari but
same code not working in firefox,IE as well as samsung Tv.Please help me
out from this problem.I tried maximum ways still i don't have any solution.

On Tue, Dec 7, 2010 at 5:48 AM, Bess bess...@gmail.com
mailto:bess...@gmail.com wrote:

I am interested in solving this too.

Let's say Samsung TV is same as desk top. You should be able to use
xAuth.

You need to create a new Twitter app to get Consumer key and Consumer
secret. Make sure you select client method and read/write.

On Dec 6, 1:23 am, umamahesh G. g.umamahesh...@gmail.com
mailto:g.umamahesh...@gmail.com wrote:
  HI Tom,
 
  Thanks for your support. I am using javascript for samsung TV
Applicaiton
  not for normal browser so there is no way to know about keys and
secret
  key.Actually Samsung SDK uses Maple browser and  application runs
on  this
  browser.
 
  I hope you help me out from this issue.
 
  Please find the below code.
 
  html
  head
  lt;script type =text/Javascript language=Javascript
  src=sha1.js/script
  lt;script type=text/javascript charset=utf-8
 
  /*To authorize on Twitter API through xAuth, you need HMAC-SHA1
  I'm using the following lib for that:http://jssha.sourceforge.net
http://jssha.sourceforge.net/
  Make sure you have sha.js included!Also, you need to email
  a...@twitter.comto get xAuth access
  I cannot do that for you - seehttp://dev.twitter.com/pages/xauth
http://dev.twitter.com/pages/xauth
  cross-domain XHRs only work on file:// protocol pages
  use PhoneGap!
   */
 
  var TwitterApiRequest = function() {
  this.nonce = this.generateNonce();
  this.timestamp = this.getUTCtimestamp();
 
  this.postBody = null;
  this.signature = null;
  this.signatureBaseString = null;
  this.consumerSecret=MY consumerSecret ;
 
  }
 
  TwitterApiRequest.prototype.generateNonce = function () {
  var nonce = [];
  var length = 6; // arbitrary - looks like a good length
 
  for (length; length  0; length--)
 
nonce.push1+Math.random())*0x1)|0).toString(16).substring(1));
 
  return nonce.join();
 
  }
 
  // could possibly do without UTC, but here we are
  TwitterApiRequest.prototype.getUTCtimestamp = function ()
  {
  //var currentTime = new Date();
  //var currentUTCTimeInSecs =
  Math.floor(Date.parse(currentTime.toUTCString()) / 1000);
  //return currentUTCTimeInSecs;
  return (new Date((new Date).toUTCString())).getTime() / 1000;
 
  }
 
  // don't forget trailing !
  //TwitterApiRequest.prototype.consumerSecret =
  MY consumerSecret ;
 
  TwitterApiRequest.prototype.signatureBaseStringTemplate = POST +
  https%3A%2F%2Fapi.twitter.com http://2fapi.twitter.com/
  http://2fapi.twitter.com/%2Foauth%2Faccess_token
  + // oauth_path
  oauth_consumer_key%3DMY CONSUMER KEY%26 +
  oauth_nonce%3D + {{ nonce }} + %26 +
  oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D + {{
time }} +
  %26 +
  oauth_version%3D1.0%26 +
  x_auth_mode%3Dclient_auth%26 +
  x_auth_password%3D + {{ password }} + %26 +
  x_auth_username%3D + {{ username }}
 
  TwitterApiRequest.prototype.authHeaderTemplate = OAuth  +
  oauth_nonce=\ + {{ nonce }} + \,  +
  oauth_signature_method=\HMAC-SHA1\,  +
  oauth_timestamp=\ + {{ time }} + \,  +
  oauth_consumer_key=\MY CONSUMER KEY\,  +
  oauth_signature=\ + {{ signature }} + \,  +
  oauth_version=\1.0\;
 
  TwitterApiRequest.prototype.processCredentials = function (user,
pw) {
  this.signatureBaseString = this.signatureBaseStringTemplate
  .split({{ nonce }}).join(this.nonce)
  .split({{ time }}).join(this.timestamp)
  .split({{ password
 
  }}).join(encodeURIComponent(pw))
  .split({{ username
  }}).join(encodeURIComponent(user));
 
  this.postBody = x_auth_mode=client_auth +
  x_auth_password= + encodeURIComponent(pw) +  +
  x_auth_username= + encodeURIComponent(user);
 
  }
 
  TwitterApiRequest.prototype.sign = function ()
  {
  //var shaObj = new jsSHA(base_string, ASCII);
  //var oauth_signature = shaObj.getHMAC(consumersecret, ASCII,
B64);
  alert(this.signatureBaseString 

[twitter-dev] Twitter4J 2.1.8 is out - now supports ALL official APIs including Site Streams beta

2010-12-07 Thread Yusuke Yamamoto
Hi all,

*** Twitter4J version 2.1.5 has a critical regression and it fails to 
generate appropriate OAuth signature. Please migrate to version 2.1.8 **

Twitter4J is an unofficial, open-sourced, mavenized and Google App 
Engine/Android ready Java library for the Twitter API released under the BSD 
license.

I'm pleased to announce the immediate availability of Twitter4J version 2.1.8.
This version supports all official APIs including Site Streams beta.

- Download:
http://twitter4j.org/en/index.html#download

- Release Notes:
http://tinyurl.com/T4J218

This release is also available at the Maven central repository.
http://repo1.maven.org/maven2/org/twitter4j/twitter4j-core/

Please refer the Support API matrix for supported methods.
http://twitter4j.org/en/api-support.html

Please note that Twitter4J is not sponsored or affiliated by Twitter.com.
For Twtter4J specific issues/questions, please use the Twitter4J mailing list 
(NOT twitter-development-talk).
http://twitter4j.org/en/index.html#mailingList

Thanks,
-- 
Yusuke Yamamoto
yus...@mac.com

this email is: [x] bloggable/tweetable [ ] private
follow me on : http://twitter.com/yusukeyamamoto
subscribe me at : http://samuraism.jp/

-- 
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] Help with finding code to push tweets to Twitter from website CMS.

2010-12-07 Thread jump_simon
Hi there,

I am a php developer and am in need of an API/Code to once a news item
is published within a CMS, to then update a Twitter account with this
information and a link back to the news article itself.

Any help, links or anything that would help would be much appreciated.

Thanks

-- 
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: delimited (streaming API) now default?

2010-12-07 Thread ianrose
Ahh!  Yes, that is exactly what was happening.  I am using a http
client library but accidentally bypassed the dechunker code and
started reading from its raw stream without realizing I was doing so.
Thanks very much!

On Nov 30, 11:28 am, @epc epcoste...@gmail.com wrote:
 On Nov 29, 12:07 pm, Matt Harris thematthar...@twitter.com wrote:

  What I did notice is that 0x6EF = 1775 and 0x710 = 1808 -- in both cases the
  Hex values are 6 bytes longer than the object we are returning.

 This came up in March, 
 see:http://groups.google.com/group/twitter-development-talk/msg/69131a43f...
 Net: it appears that the client is consuming the stream raw and not
 decoding the chunked transfer encoding.
 --
 -ed costello

-- 
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] Help with finding code to push tweets to Twitter from website CMS.

2010-12-07 Thread Adam Green
This tutorial will give you a step-by-step method for posting tweets to a
Twitter account with PHP and OAuth:
http://140dev.com/twitter-api-programming-tutorials/hello-twitter-oauth-php/

You can contact me directly if you have any questions. One thing I'd add to
the tutorial is to register your Twitter app with the URL of your news site.
That gives you two URLs in each tweet. One can be the URL you embed in the
tweet, which points directly to the article. The other is the via link
that Twitter puts in the dateline. That goes to the URL you enter when
registering the app.

To answer another common question in advance, you enter links into the tweet
text by just using a URL, not by adding 'a href=...' around the URL. So if
you put google.com or http:///google.com into a tweet, they will
automatically be displayed as links.

I know others on this list will warn you that just tweeting links to your
website is a poor use of Twitter. I agree up to a point. I think *just*
tweeting links is a bad idea, but tweeting a mixture of links to useful
articles, and human tweets to your followers is an effective way to build an
active account.


On Tue, Dec 7, 2010 at 9:42 AM, jump_simon 
analyt...@berniciabiggerpicture.com wrote:

 Hi there,

 I am a php developer and am in need of an API/Code to once a news item
 is published within a CMS, to then update a Twitter account with this
 information and a link back to the news article itself.

 Any help, links or anything that would help would be much appreciated.

 Thanks

 --
 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




-- 
Adam Green
Twitter API Consultant and Trainer
http://140dev.com
@140dev

-- 
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 OAuth replays Blackberry devices in lower case

2010-12-07 Thread Canaan
I am using Twitter OAuth in one of our sites. The oauth_token and
oauth_verifier we get from twitter are all mixed cases for all
browsers except blackberry browser (blackberry storm). It seems like
twitter detects client devices and converts everything to lower case
for blackberry.

Any ideal?

-- 
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: statuses/user_timeline count bug

2010-12-07 Thread Rich
Yep that's still possible, so request 20... it's very unlikely you'd
get 5 or less for a count of 20

On Dec 7, 12:07 pm, L0rdJ dolgushev.ser...@gmail.com wrote:
 But if count 10 will return only 4 tweets? :)

 On 7 дек, 13:36, Scott Wilcox sc...@dor.ky wrote:

  Use a count of 10 and trim on your end.

  On 7 Dec 2010, at 11:29, L0rdJ wrote:

   Hi Taylor,
   But how can i get for example last 5 user`s tweets (without the
   retweets)?

   On 6 дек, 17:50, Taylor Singletary taylorsinglet...@twitter.com
   wrote:
   Hi L0rdJ,

   This is how the Twitter REST API count parameters work -- they are 
   hopeful
   counts -- you won't get more than the count specified but you may get 
   less.
   This is one reason you see many web-based Twitter clients utilize a 
   More
   button approach rather than paged results. It's best to focus less on the
   literal count of results that you get back and instead on the content.

   TaylorOn Mon, Dec 6, 2010 at 4:37 AM, L0rdJ dolgushev.ser...@gmail.com 
   wrote:
   I found a bug in the Twitter API, but i can`t find where i can report
   in, so i decided report it to this group, with hope that somebody help
   me :)

   Seems like when i`m setting count parameter for statuses/
   user_timeline API call, but i`m not setting include_rts parameter.
   Returned statuses are limited including retweets. But retweets aren`t
   displayed.

   So if i have
   1. some tweet 1
   2. retweet to some tweet 1
   3. retweet to some tweet 1
   4. some tweet 2
   5. some tweet 3
   

   and i`m trying to get statuses/user_timeline with count = 3, and
   disabled include_rts. I got:
   1. Some tweet 1
   Instead of
   1. Some tweet 1
   2. Some tweet 2
   3. Some tweet 3



-- 
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] Help with finding code to push tweets to Twitter from website CMS.

2010-12-07 Thread JuanSa

One option is to sync your Feed RSS with twitter by using some web app

El 07/12/2010, a las 15:42, jump_simon analyt...@berniciabiggerpicture.com 
 escribió:



Hi there,

I am a php developer and am in need of an API/Code to once a news item
is published within a CMS, to then update a Twitter account with this
information and a link back to the news article itself.

Any help, links or anything that would help would be much appreciated.

Thanks

--
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] Twitter API is giving wrong tweet ID

2010-12-07 Thread noriguard
During last several days, I've found that Twitter API frequently gives
wrong information, especially tweet ID.

For example, API send to me the tweet ID '12226467568025600' of
HuffingtonPost, the tweet URL is therefore following:

* [wrong] http://twitter.com/#!/HuffingtonPost/status/12226467568025600

However, you can notice that it is actually not from HunffingtonPost
but from other guy.

The correct tweet ID must be 12226467568025601 (wrong ID plus one).

* [correct] http://twitter.com/#!/HuffingtonPost/status/12226467568025601

How can I deal with this problem?


By the way, I'm curious if Twitter developers are aware of this severe
bug.

-- 
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] Twitter API is giving wrong tweet ID

2010-12-07 Thread Tom van der Woerdt
Are you sure that your implementation is correct? It really sounds like 
an issue with processing larger numbers. Are you using JavaScript, 
ActionScript, or any other ECMAScript language?


Tom


On 12/7/10 8:48 PM, noriguard wrote:

During last several days, I've found that Twitter API frequently gives
wrong information, especially tweet ID.

For example, API send to me the tweet ID '12226467568025600' of
HuffingtonPost, the tweet URL is therefore following:

* [wrong] http://twitter.com/#!/HuffingtonPost/status/12226467568025600

However, you can notice that it is actually not from HunffingtonPost
but from other guy.

The correct tweet ID must be 12226467568025601 (wrong ID plus one).

* [correct] http://twitter.com/#!/HuffingtonPost/status/12226467568025601

How can I deal with this problem?


By the way, I'm curious if Twitter developers are aware of this severe
bug.



--
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 API is giving wrong tweet ID

2010-12-07 Thread noriguard
Yes, I think the implementation is correct, and I use ActionScript.

Many of tweets are having correct ID, but some tweets are having wrong
one.


On Dec 7, 11:59 am, Tom van der Woerdt i...@tvdw.eu wrote:
 Are you sure that your implementation is correct? It really sounds like
 an issue with processing larger numbers. Are you using JavaScript,
 ActionScript, or any other ECMAScript language?

 Tom

 On 12/7/10 8:48 PM, noriguard wrote:

  During last several days, I've found that Twitter API frequently gives
  wrong information, especially tweet ID.

  For example, API send to me the tweet ID '12226467568025600' of
  HuffingtonPost, the tweet URL is therefore following:

  * [wrong]http://twitter.com/#!/HuffingtonPost/status/12226467568025600

  However, you can notice that it is actually not from HunffingtonPost
  but from other guy.

  The correct tweet ID must be 12226467568025601 (wrong ID plus one).

  * [correct]http://twitter.com/#!/HuffingtonPost/status/12226467568025601

  How can I deal with this problem?

  By the way, I'm curious if Twitter developers are aware of this severe
  bug.

-- 
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 API is giving wrong tweet ID

2010-12-07 Thread Tom van der Woerdt

No, the tweets are fine.

ActionScript (and any other ECMAScript language) can't handle numbers 
larger than 53 bits. In a few days you'll see that the numbers will be 
wrong twice as much. A few weeks later this will duplicate again, and 
again, and again.


To solve this issue, a _str field (id_str, etc) was introduced for 
ECMAScript-based languages.


It's not your implementation, it's the language. :-)

Please use id_str instead of id.

Tom


On 12/7/10 9:08 PM, noriguard wrote:

Yes, I think the implementation is correct, and I use ActionScript.

Many of tweets are having correct ID, but some tweets are having wrong
one.


On Dec 7, 11:59 am, Tom van der Woerdti...@tvdw.eu  wrote:

Are you sure that your implementation is correct? It really sounds like
an issue with processing larger numbers. Are you using JavaScript,
ActionScript, or any other ECMAScript language?

Tom

On 12/7/10 8:48 PM, noriguard wrote:


During last several days, I've found that Twitter API frequently gives
wrong information, especially tweet ID.



For example, API send to me the tweet ID '12226467568025600' of
HuffingtonPost, the tweet URL is therefore following:



* [wrong]http://twitter.com/#!/HuffingtonPost/status/12226467568025600



However, you can notice that it is actually not from HunffingtonPost
but from other guy.



The correct tweet ID must be 12226467568025601 (wrong ID plus one).



* [correct]http://twitter.com/#!/HuffingtonPost/status/12226467568025601



How can I deal with this problem?



By the way, I'm curious if Twitter developers are aware of this severe
bug.




--
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 API is giving wrong tweet ID

2010-12-07 Thread noriguard
I've checked what you said.
Your advice is really helpful to me.
Thank you very much.


On Dec 7, 12:10 pm, Tom van der Woerdt i...@tvdw.eu wrote:
 No, the tweets are fine.

 ActionScript (and any other ECMAScript language) can't handle numbers
 larger than 53 bits. In a few days you'll see that the numbers will be
 wrong twice as much. A few weeks later this will duplicate again, and
 again, and again.

 To solve this issue, a _str field (id_str, etc) was introduced for
 ECMAScript-based languages.

 It's not your implementation, it's the language. :-)

 Please use id_str instead of id.

 Tom

 On 12/7/10 9:08 PM, noriguard wrote:

  Yes, I think the implementation is correct, and I use ActionScript.

  Many of tweets are having correct ID, but some tweets are having wrong
  one.

  On Dec 7, 11:59 am, Tom van der Woerdti...@tvdw.eu  wrote:
  Are you sure that your implementation is correct? It really sounds like
  an issue with processing larger numbers. Are you using JavaScript,
  ActionScript, or any other ECMAScript language?

  Tom

  On 12/7/10 8:48 PM, noriguard wrote:

  During last several days, I've found that Twitter API frequently gives
  wrong information, especially tweet ID.

  For example, API send to me the tweet ID '12226467568025600' of
  HuffingtonPost, the tweet URL is therefore following:

  * [wrong]http://twitter.com/#!/HuffingtonPost/status/12226467568025600

  However, you can notice that it is actually not from HunffingtonPost
  but from other guy.

  The correct tweet ID must be 12226467568025601 (wrong ID plus one).

  * [correct]http://twitter.com/#!/HuffingtonPost/status/12226467568025601

  How can I deal with this problem?

  By the way, I'm curious if Twitter developers are aware of this severe
  bug.

-- 
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] Mobile texts

2010-12-07 Thread Funky93
The last week twitter mobile has not being working I can't do anything
and I can't even turn updates on, I just getting a message saying we
are busy try later you have not been charged! It is getting really
annoying now because I can't do anything including tweet! Please fix
this!!!

Thanks

-- 
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: GET Querystring for status update not working on new Twitter

2010-12-07 Thread jtherieau
We use SSL on our site. Which is a known issue:

Whilst the Javascript version of the Tweet Button is not support
over SSL you can use the 'build-your-own Tweet Button' technique
instead.

Well, if I create a custom button that works for SSL, the URL I want
to pass along from the custom button looks like this once it's been
encoded for Twitter:

http%3A%2F%2Fdev%2Emitchell%2Ecom%2Fmitch%2Fcompany%2Fpressrelease
%2Dtweet%2Easp%3Frange%3D0%26pr%3D268

Above, you state: One known issue right now is that %26 is converted
to  in #newtwitter so anything after it is ignored. Well, the last
part of my URL string (after %26) is the part we need to display the
correct press release. And that's the part that's being ignored. Your
recommendation was to consider using the Tweet Button instead of the
URL. It provides a better experience for your users and allows them to
Tweet without leaving your site.

Hmmm. So basically we are in a Catch-22.
Any idea when one or the other of these issues might be resolved?

Jennifer

-- 
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] Can I get information when a tweet gets favorite?

2010-12-07 Thread noriguard
Favorite API seems to give only whether a tweet is in favorites or
not.
Is there any way to get information about the time when favorite is
performed?

-- 
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] Mobile texts

2010-12-07 Thread Matt Harris
Hi,

The Twitter Mobile integrations are not maintained by the Twitter API team.
For assistance please contact our user support team using the following
webform:
http://bit.ly/twicket

Best
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Tue, Dec 7, 2010 at 1:19 PM, Funky93 shoutg...@msn.com wrote:

 The last week twitter mobile has not being working I can't do anything
 and I can't even turn updates on, I just getting a message saying we
 are busy try later you have not been charged! It is getting really
 annoying now because I can't do anything including tweet! Please fix
 this!!!

 Thanks

 --
 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: Can I get information when a tweet gets favorite?

2010-12-07 Thread Georgios
That is only available if you actively monitor a user using User/Site
Streams and keep track of the favorite events. Cannot be done
retrospectively via the REST API I am afraid.

Cheers
Georgios - http://favorious.com - The best of Twitter, based on
favorites

On Dec 7, 10:16 pm, noriguard jinbok...@gmail.com wrote:
 Favorite API seems to give only whether a tweet is in favorites or
 not.
 Is there any way to get information about the time when favorite is
 performed?

-- 
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: oauth_callback

2010-12-07 Thread Tim Bull
There is a required OAuth parameter step which is unclearly documented
by Twitter. When Twitter returns from your /oauth/authorize It returns
an oauth_verifier token. Make sure that you pass this oauth_verifier
token (along with the other parameters) along to
your /oauth/access_token call.


Make sure you are passing this oauth_verifier in and see how you go.
I've found that if you DON'T set a callback, it doesn't enforce the
verifier, but if you do, then the verifier is essential (just be aware
Twitter are planning to change to always require this in the future, so
it's more compliant with the spec; worth making this change regardless,
a lot of Twitter libraries don't implement it).


Hope this helps...


Tim

-- 
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] register twitter app which is on intranet

2010-12-07 Thread Kieran
hi,

i am starting some twitter dev using asp.net.

i need to register my app with twitter in order to get the various
connection details etc.  however my app is on an intranet with no
external url.

how can i register my app as its looking for a callback url etc...

thanks

-- 
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] URLS no longer being recognized in tweets ?

2010-12-07 Thread kprobe
Why do we NOW have to prefix links in tweets with http:// ?
These used to work in the past ..
www.outwit.me
x.co/ORNAMENTS
Now I need to place http:// in front.

-- 
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: register twitter app which is on intranet

2010-12-07 Thread Tim Bull
Use the OOB process - so pass oauth_callback=oob and you should get a
PIN from Twitter which you then use in fetching your access_token.


http://dev.twitter.com/pages/auth_overview#oob

-- 
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: register twitter app which is on intranet

2010-12-07 Thread Tim Bull
Oh, and while I think of it - if you just need the access token to make
calls as your app (i.e. it's some kind of bot) then you don't even need
to do that - just go to http://dev.twitter.com/apps, view your app and
select my access token on the right. This will give you the access
keys you need without doing the 3 step OAuth dance.


Just use these to sign your requests and you'll be sweet.

-- 
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: Can I get information when a tweet gets favorite?

2010-12-07 Thread noriguard
I see.
I feel that it's better not to do it, due to the burden of keeping all
events.

Thanks a lot.


On Dec 7, 4:08 pm, Georgios kapero...@gmail.com wrote:
 That is only available if you actively monitor a user using User/Site
 Streams and keep track of the favorite events. Cannot be done
 retrospectively via the REST API I am afraid.

 Cheers
 Georgios -http://favorious.com- The best of Twitter, based on
 favorites

 On Dec 7, 10:16 pm, noriguard jinbok...@gmail.com wrote:

  Favorite API seems to give only whether a tweet is in favorites or
  not.
  Is there any way to get information about the time when favorite is
  performed?

-- 
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] register twitter app which is on intranet

2010-12-07 Thread Tom van der Woerdt

I assume that people from that intranet have access to twitter.com.

The word callback URL isn't actually the right name. Redirect URL 
is. Twitter doesn't contact this URL, but only points your browser at 
it. This means that you can simply use a http://localhost and/or 
http://10.0.0.1 URL as callback URL.


Tom


On 12/8/10 12:50 AM, Kieran wrote:

hi,

i am starting some twitter dev using asp.net.

i need to register my app with twitter in order to get the various
connection details etc.  however my app is on an intranet with no
external url.

how can i register my app as its looking for a callback url etc...

thanks



--
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