[twitter-dev] Re: New app for every Twitter account?

2010-08-12 Thread Ken
As Taylor says, you don't need a different app for each account, but
actually that's the easy solution, with the added benefit that you
never need to do the Oauth dance to capture any tokens. PLUS... each
app gets the glory of it's own via tag.

Creating an app is no more work than creating a Twitter account. The
actual app is of course your same code each time. Just fill in the
blanks and grab the tokens using the 'My Access Token link.

Then in your publication code just substitute in the keys for that
site/account.

On Aug 11, 9:37 pm, Skygazer marc.bouc...@gmail.com wrote:
 My company has several news sites and each has one or more Twitter
 accounts depending on the topic. I've created a new app using OAuth
 and PHP to post our news stories automatically as they are published.
 Previously with basic authentication I would just pass the username
 and password etc. to get the story posted. But now I'm wondering, do I
 need to create a new app for every Twitter account we have? Or can I
 post to our accounts with the one app I created with its keys and
 tokens? And if I can use just the one app, how do I post to the other
 accounts? The app was created on our primary Twitter account.

 Thanks
 Marc

 PS I already have the OAuth and PHP code working for our primary
 Twiter account.


[twitter-dev] python oauth2 and twitter - invalid signature issue

2010-08-12 Thread bear
I'm working on bringing the python-twitter library up to date with
respect to using oAuth and i'm running into a brick wall...

I've scanned the group postings and by far it seems that the most
common issue when generating a request is that the order of items in
the url param list is not the same as the order of items sent off to
be signed *and* that said item list must be sorted.

Using the debug key/secret values from the wiki, I generate the
following:

(debug output from python's urllib2, formatted to wrap so it's
readable)
GET /1/account/verify_credentials.json?
oauth_nonce=26979601
oauth_timestamp=1281612120
oauth_consumer_key=GDdmIQH6jhtmLUypg82g
oauth_signature_method=HMAC-SHA1
oauth_version=1.0
oauth_token=819797-Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw
oauth_signature=e82GTcQn9Rjir1QMNw19%2FwTkAYA%3D
HTTP/1.1\r\n
Accept-Encoding: identity\r\n
Host: api.twitter.com\r\n
Connection: close\r\n
Authorization: OAuth realm=, oauth_nonce=26979601,
oauth_timestamp=1281612120,
oauth_consumer_key=GDdmIQH6jhtmLUypg82g,
oauth_signature_method=HMAC-SHA1, oauth_version=1.0,
oauth_token=819797-Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw,
oauth_signature=e82GTcQn9Rjir1QMNw19%2FwTkAYA%3D\r\n\r\n'

and this is the raw data being signed:

GEThttps%3A%2F%2Fapi.twitter.com%2F1%2Faccount
%2Fverify_credentials.jsonoauth_consumer_key%3DGDdmIQH6jhtmLUypg82g
%26oauth_nonce%3D26979601%26oauth_signature_method%3DHMAC-
SHA1%26oauth_timestamp%3D1281612120%26oauth_token%3D819797-
Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw%26oauth_version%3D1.0

First thing I notice is that the ordering of the oauth_* items is all
over the place (i'll be sending a message to the python-oauth2 folks
once I figure out where they are hanging out) but even when I correct
for that and run it again, I *still* get an Invalid Signature error
from Twitter!

Here is the same debug run where all of the oauth_* items are sorted:
(debug output from urllib2, formatted so it's readable)
GET /1/account/verify_credentials.json?
oauth_consumer_key=GDdmIQH6jhtmLUypg82g
oauth_nonce=21793837
oauth_signature=5AQnyr09ZBcRz95SDPFOKizBEoo%3D
oauth_signature_method=HMAC-SHA1
oauth_timestamp=1281612568
oauth_token=819797-Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw
oauth_version=1.0
HTTP/1.1\r\n
Accept-Encoding: identity\r\n
Host: api.twitter.com\r\n
Connection: close\r\n
Authorization: OAuth oauth_consumer_key=GDdmIQH6jhtmLUypg82g,
oauth_nonce=21793837, oauth_signature=5AQnyr09ZBcRz95SDPFOKizBEoo
%3D, oauth_signature_method=HMAC-SHA1,
oauth_timestamp=1281612568, oauth_token=819797-
Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw, oauth_version=1.0\r\n\r
\n'

raw data being signed:

GEThttps%3A%2F%2Fapi.twitter.com%2F1%2Faccount
%2Fverify_credentials.jsonoauth_consumer_key%3DGDdmIQH6jhtmLUypg82g
%26oauth_nonce%3D21793837%26oauth_signature_method%3DHMAC-
SHA1%26oauth_timestamp%3D1281612568%26oauth_token%3D819797-
Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw%26oauth_version%3D1.0

looking for any clue-sticks, lifelines or hell, even a RTFM with a url
- thanks!


Re: [twitter-dev] python oauth2 and twitter - invalid signature issue

2010-08-12 Thread Tom van der Woerdt
On 8/12/10 1:33 PM, bear wrote:
 I'm working on bringing the python-twitter library up to date with
 respect to using oAuth and i'm running into a brick wall...
 
 I've scanned the group postings and by far it seems that the most
 common issue when generating a request is that the order of items in
 the url param list is not the same as the order of items sent off to
 be signed *and* that said item list must be sorted.
 
 Using the debug key/secret values from the wiki, I generate the
 following:
 
 (debug output from python's urllib2, formatted to wrap so it's
 readable)
 GET /1/account/verify_credentials.json?
 oauth_nonce=26979601
 oauth_timestamp=1281612120
 oauth_consumer_key=GDdmIQH6jhtmLUypg82g
 oauth_signature_method=HMAC-SHA1
 oauth_version=1.0
 oauth_token=819797-Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw
 oauth_signature=e82GTcQn9Rjir1QMNw19%2FwTkAYA%3D
 HTTP/1.1\r\n
 Accept-Encoding: identity\r\n
 Host: api.twitter.com\r\n
 Connection: close\r\n
 Authorization: OAuth realm=, oauth_nonce=26979601,
 oauth_timestamp=1281612120,
 oauth_consumer_key=GDdmIQH6jhtmLUypg82g,
 oauth_signature_method=HMAC-SHA1, oauth_version=1.0,
 oauth_token=819797-Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw,
 oauth_signature=e82GTcQn9Rjir1QMNw19%2FwTkAYA%3D\r\n\r\n'
 
 and this is the raw data being signed:
 
 GEThttps%3A%2F%2Fapi.twitter.com%2F1%2Faccount
 %2Fverify_credentials.jsonoauth_consumer_key%3DGDdmIQH6jhtmLUypg82g
 %26oauth_nonce%3D26979601%26oauth_signature_method%3DHMAC-
 SHA1%26oauth_timestamp%3D1281612120%26oauth_token%3D819797-
 Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw%26oauth_version%3D1.0
 
 First thing I notice is that the ordering of the oauth_* items is all
 over the place (i'll be sending a message to the python-oauth2 folks
 once I figure out where they are hanging out) but even when I correct
 for that and run it again, I *still* get an Invalid Signature error
 from Twitter!
 
 Here is the same debug run where all of the oauth_* items are sorted:
 (debug output from urllib2, formatted so it's readable)
 GET /1/account/verify_credentials.json?
 oauth_consumer_key=GDdmIQH6jhtmLUypg82g
 oauth_nonce=21793837
 oauth_signature=5AQnyr09ZBcRz95SDPFOKizBEoo%3D
 oauth_signature_method=HMAC-SHA1
 oauth_timestamp=1281612568
 oauth_token=819797-Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw
 oauth_version=1.0
 HTTP/1.1\r\n
 Accept-Encoding: identity\r\n
 Host: api.twitter.com\r\n
 Connection: close\r\n
 Authorization: OAuth oauth_consumer_key=GDdmIQH6jhtmLUypg82g,
 oauth_nonce=21793837, oauth_signature=5AQnyr09ZBcRz95SDPFOKizBEoo
 %3D, oauth_signature_method=HMAC-SHA1,
 oauth_timestamp=1281612568, oauth_token=819797-
 Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw, oauth_version=1.0\r\n\r
 \n'
 
 raw data being signed:
 
 GEThttps%3A%2F%2Fapi.twitter.com%2F1%2Faccount
 %2Fverify_credentials.jsonoauth_consumer_key%3DGDdmIQH6jhtmLUypg82g
 %26oauth_nonce%3D21793837%26oauth_signature_method%3DHMAC-
 SHA1%26oauth_timestamp%3D1281612568%26oauth_token%3D819797-
 Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw%26oauth_version%3D1.0
 
 looking for any clue-sticks, lifelines or hell, even a RTFM with a url
 - thanks!

Hi,

Multiple things.
* You don't have to send the oauth_* parameters in both the query and
the Authorization: header.
* The Base String seems fine, but you should not be using the keys on
the wiki - they are random keys and will not work. (!)
* The field order in the Authorization: header does not matter.

I don't know which secrets you are using so I can't verify your
signature generation, although I assume that it is correct.

Tom


[twitter-dev] Re: Can't get the friend list of the logged in user (oAuth)

2010-08-12 Thread Rémy B
Thanks Tom.

I have already tried these two. My problem is, I always get the Rate
limit exceeded. Clients may not make more than 150 requests per hour.
error message, even if this is the first time I log in.
I thought it could be possible if the user is logged in using oAuth.

Let's say I want to get the list of profiles followed by @Twitter:

?php
$curl = curl_init();
curl_setopt($curl,CURLOPT_URL,http://api.twitter.com/1/friends/ids/
twitter.xml);
curl_setopt($curl,CURLOPT_RETURNTRANSFER,true);
$contenu = curl_exec($curl);
$xml = new simpleXMLElement($contenu);
print_r($xml);
foreach ($xml-ids-id as $friend) {
echo $friend.br;
}
?

What am I doing wrong?


Re: [twitter-dev] Re: Can't get the friend list of the logged in user (oAuth)

2010-08-12 Thread Tom van der Woerdt
On 8/12/10 1:59 PM, Rémy B wrote:
 Thanks Tom.
 
 I have already tried these two. My problem is, I always get the Rate
 limit exceeded. Clients may not make more than 150 requests per hour.
 error message, even if this is the first time I log in.
 I thought it could be possible if the user is logged in using oAuth.
 
 Let's say I want to get the list of profiles followed by @Twitter:
 
 ?php
 $curl = curl_init();
 curl_setopt($curl,CURLOPT_URL,http://api.twitter.com/1/friends/ids/
 twitter.xml);
 curl_setopt($curl,CURLOPT_RETURNTRANSFER,true);
 $contenu = curl_exec($curl);
 $xml = new simpleXMLElement($contenu);
 print_r($xml);
 foreach ($xml-ids-id as $friend) {
   echo $friend.br;
 }
 ?
 
 What am I doing wrong?

Hi Rémy,

You are not doing anything wrong. I just tested that code and it works
fine. I'd say: wait an hour, and it will work.

You could (should) check the HTTP headers - they offer you information
about your current rate limit status.

I do get this error, but it is not related to the rate limit :
Warning: Invalid argument supplied for foreach() in
/Users/tom/Sites/test.php on line 9

Tom


[twitter-dev] Failed to validate oauth signature and token

2010-08-12 Thread Lumpizaver
I cannot get the oAuth to work properly.

I am trying to get a web response of a string that looks like this:
https://twitter.com/oauth/request_token?
oauth_callback=http://win.plane.si/TwittRank/tweets.aspx
oauth_consumer_key=[MY CONSUMER KEY]
oauth_nonce=8536829
oauth_signature_method=HMAC-SHA1
oauth_timestamp=1281614745
oauth_token=[MY ACCESS TOKEN]
oauth_version=1.0
oauth_signature=OTNQE/CGAcVemax9egTA5LFw04w=}

I get the exception: The remote server returned an error: (401)
Unauthorized.


If I visit the URL above in browser i get:

Failed to validate oauth signature and token


Thanks for your help.

Jure


Re: [twitter-dev] Failed to validate oauth signature and token

2010-08-12 Thread Tom van der Woerdt
On 8/12/10 2:09 PM, Lumpizaver wrote:
 I cannot get the oAuth to work properly.
 
 I am trying to get a web response of a string that looks like this:
 https://twitter.com/oauth/request_token?
 oauth_callback=http://win.plane.si/TwittRank/tweets.aspx
 oauth_consumer_key=[MY CONSUMER KEY]
 oauth_nonce=8536829
 oauth_signature_method=HMAC-SHA1
 oauth_timestamp=1281614745
 oauth_token=[MY ACCESS TOKEN]
 oauth_version=1.0
 oauth_signature=OTNQE/CGAcVemax9egTA5LFw04w=}
 
 I get the exception: The remote server returned an error: (401)
 Unauthorized.
 
 
 If I visit the URL above in browser i get:
 
 Failed to validate oauth signature and token
 
 
 Thanks for your help.
 
 Jure

Hello Jure,

How are you generating your signature? (What is your Base String?)

Also, I think that your nonce is a bit short. While it will not cause
issues, you may like to take a longer one - and preferably alphanumeric.

Tom


[twitter-dev] Re: python oauth2 and twitter - invalid signature issue

2010-08-12 Thread bear


On Aug 12, 7:57 am, Tom van der Woerdt i...@tvdw.eu wrote:
 On 8/12/10 1:33 PM, bear wrote:





  I'm working on bringing the python-twitter library up to date with
  respect to using oAuth and i'm running into a brick wall...

  I've scanned the group postings and by far it seems that the most
  common issue when generating a request is that the order of items in
  the url param list is not the same as the order of items sent off to
  be signed *and* that said item list must be sorted.

  Using the debug key/secret values from the wiki, I generate the
  following:

  (debug output from python's urllib2, formatted to wrap so it's
  readable)
  GET /1/account/verify_credentials.json?
  oauth_nonce=26979601
  oauth_timestamp=1281612120
  oauth_consumer_key=GDdmIQH6jhtmLUypg82g
  oauth_signature_method=HMAC-SHA1
  oauth_version=1.0
  oauth_token=819797-Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw
  oauth_signature=e82GTcQn9Rjir1QMNw19%2FwTkAYA%3D
  HTTP/1.1\r\n
  Accept-Encoding: identity\r\n
  Host: api.twitter.com\r\n
  Connection: close\r\n
  Authorization: OAuth realm=, oauth_nonce=26979601,
  oauth_timestamp=1281612120,
  oauth_consumer_key=GDdmIQH6jhtmLUypg82g,
  oauth_signature_method=HMAC-SHA1, oauth_version=1.0,
  oauth_token=819797-Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw,
  oauth_signature=e82GTcQn9Rjir1QMNw19%2FwTkAYA%3D\r\n\r\n'

  and this is the raw data being signed:

  GEThttps%3A%2F%2Fapi.twitter.com%2F1%2Faccount
  %2Fverify_credentials.jsonoauth_consumer_key%3DGDdmIQH6jhtmLUypg82g
  %26oauth_nonce%3D26979601%26oauth_signature_method%3DHMAC-
  SHA1%26oauth_timestamp%3D1281612120%26oauth_token%3D819797-
  Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw%26oauth_version%3D1.0

  First thing I notice is that the ordering of the oauth_* items is all
  over the place (i'll be sending a message to the python-oauth2 folks
  once I figure out where they are hanging out) but even when I correct
  for that and run it again, I *still* get an Invalid Signature error
  from Twitter!

  Here is the same debug run where all of the oauth_* items are sorted:
  (debug output from urllib2, formatted so it's readable)
  GET /1/account/verify_credentials.json?
  oauth_consumer_key=GDdmIQH6jhtmLUypg82g
  oauth_nonce=21793837
  oauth_signature=5AQnyr09ZBcRz95SDPFOKizBEoo%3D
  oauth_signature_method=HMAC-SHA1
  oauth_timestamp=1281612568
  oauth_token=819797-Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw
  oauth_version=1.0
  HTTP/1.1\r\n
  Accept-Encoding: identity\r\n
  Host: api.twitter.com\r\n
  Connection: close\r\n
  Authorization: OAuth oauth_consumer_key=GDdmIQH6jhtmLUypg82g,
  oauth_nonce=21793837, oauth_signature=5AQnyr09ZBcRz95SDPFOKizBEoo
  %3D, oauth_signature_method=HMAC-SHA1,
  oauth_timestamp=1281612568, oauth_token=819797-
  Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw, oauth_version=1.0\r\n\r
  \n'

  raw data being signed:

  GEThttps%3A%2F%2Fapi.twitter.com%2F1%2Faccount
  %2Fverify_credentials.jsonoauth_consumer_key%3DGDdmIQH6jhtmLUypg82g
  %26oauth_nonce%3D21793837%26oauth_signature_method%3DHMAC-
  SHA1%26oauth_timestamp%3D1281612568%26oauth_token%3D819797-
  Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw%26oauth_version%3D1.0

  looking for any clue-sticks, lifelines or hell, even a RTFM with a url
  - thanks!

 Hi,

 Multiple things.
 * You don't have to send the oauth_* parameters in both the query and
 the Authorization: header.

The library i'm using does that - not sure why.  I'll explore removing
all but oauth_signature in a bit.

 * The Base String seems fine, but you should not be using the keys on
 the wiki - they are random keys and will not work. (!)

I used the wiki keys only because another post (oAuth and
AppleScript) someone requested that they use those keys so that the
signature value could be compared - I did the same.  I get Invalid
Signature when using keys that I've gotten back from Twitter.

 * The field order in the Authorization: header does not matter.

Is it the order in the URL and the Signature then that is the
magic ?


 I don't know which secrets you are using so I can't verify your
 signature generation, although I assume that it is correct.

heck, i'm willing to post the key and secret so you can follow along -
it is tied to a test app so I can blow them away at anytime.

 Tom

thanks for the response


Re: [twitter-dev] Re: python oauth2 and twitter - invalid signature issue

2010-08-12 Thread Tom van der Woerdt
On 8/12/10 2:37 PM, bear wrote:
 
 
 On Aug 12, 7:57 am, Tom van der Woerdt i...@tvdw.eu wrote:
 On 8/12/10 1:33 PM, bear wrote:





 I'm working on bringing the python-twitter library up to date with
 respect to using oAuth and i'm running into a brick wall...

 I've scanned the group postings and by far it seems that the most
 common issue when generating a request is that the order of items in
 the url param list is not the same as the order of items sent off to
 be signed *and* that said item list must be sorted.

 Using the debug key/secret values from the wiki, I generate the
 following:

 (debug output from python's urllib2, formatted to wrap so it's
 readable)
 GET /1/account/verify_credentials.json?
 oauth_nonce=26979601
 oauth_timestamp=1281612120
 oauth_consumer_key=GDdmIQH6jhtmLUypg82g
 oauth_signature_method=HMAC-SHA1
 oauth_version=1.0
 oauth_token=819797-Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw
 oauth_signature=e82GTcQn9Rjir1QMNw19%2FwTkAYA%3D
 HTTP/1.1\r\n
 Accept-Encoding: identity\r\n
 Host: api.twitter.com\r\n
 Connection: close\r\n
 Authorization: OAuth realm=, oauth_nonce=26979601,
 oauth_timestamp=1281612120,
 oauth_consumer_key=GDdmIQH6jhtmLUypg82g,
 oauth_signature_method=HMAC-SHA1, oauth_version=1.0,
 oauth_token=819797-Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw,
 oauth_signature=e82GTcQn9Rjir1QMNw19%2FwTkAYA%3D\r\n\r\n'

 and this is the raw data being signed:

 GEThttps%3A%2F%2Fapi.twitter.com%2F1%2Faccount
 %2Fverify_credentials.jsonoauth_consumer_key%3DGDdmIQH6jhtmLUypg82g
 %26oauth_nonce%3D26979601%26oauth_signature_method%3DHMAC-
 SHA1%26oauth_timestamp%3D1281612120%26oauth_token%3D819797-
 Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw%26oauth_version%3D1.0

 First thing I notice is that the ordering of the oauth_* items is all
 over the place (i'll be sending a message to the python-oauth2 folks
 once I figure out where they are hanging out) but even when I correct
 for that and run it again, I *still* get an Invalid Signature error
 from Twitter!

 Here is the same debug run where all of the oauth_* items are sorted:
 (debug output from urllib2, formatted so it's readable)
 GET /1/account/verify_credentials.json?
 oauth_consumer_key=GDdmIQH6jhtmLUypg82g
 oauth_nonce=21793837
 oauth_signature=5AQnyr09ZBcRz95SDPFOKizBEoo%3D
 oauth_signature_method=HMAC-SHA1
 oauth_timestamp=1281612568
 oauth_token=819797-Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw
 oauth_version=1.0
 HTTP/1.1\r\n
 Accept-Encoding: identity\r\n
 Host: api.twitter.com\r\n
 Connection: close\r\n
 Authorization: OAuth oauth_consumer_key=GDdmIQH6jhtmLUypg82g,
 oauth_nonce=21793837, oauth_signature=5AQnyr09ZBcRz95SDPFOKizBEoo
 %3D, oauth_signature_method=HMAC-SHA1,
 oauth_timestamp=1281612568, oauth_token=819797-
 Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw, oauth_version=1.0\r\n\r
 \n'

 raw data being signed:

 GEThttps%3A%2F%2Fapi.twitter.com%2F1%2Faccount
 %2Fverify_credentials.jsonoauth_consumer_key%3DGDdmIQH6jhtmLUypg82g
 %26oauth_nonce%3D21793837%26oauth_signature_method%3DHMAC-
 SHA1%26oauth_timestamp%3D1281612568%26oauth_token%3D819797-
 Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw%26oauth_version%3D1.0

 looking for any clue-sticks, lifelines or hell, even a RTFM with a url
 - thanks!

 Hi,

 Multiple things.
 * You don't have to send the oauth_* parameters in both the query and
 the Authorization: header.
 
 The library i'm using does that - not sure why.  I'll explore removing
 all but oauth_signature in a bit.
Sorry if you misunderstood me. You should send all of them only once -
either in the Authorization header or in the query.

 * The Base String seems fine, but you should not be using the keys on
 the wiki - they are random keys and will not work. (!)
 
 I used the wiki keys only because another post (oAuth and
 AppleScript) someone requested that they use those keys so that the
 signature value could be compared - I did the same.  I get Invalid
 Signature when using keys that I've gotten back from Twitter
That was me.

Using this base string :
GEThttps%3A%2F%2Fapi.twitter.com%2F1%2Faccount%2Fverify_credentials.jsonoauth_consumer_key%3DGDdmIQH6jhtmLUypg82g%26oauth_nonce%3D26979601%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1281612120%26oauth_token%3D819797-Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw%26oauth_version%3D1.0

Key:
MCD8BKwGdgPHvAuvgvz4EQpqDAtx89grbuNMRd7Eh98J6zix3FfA9LofH0awS24M3HcBYXO5nI1iYe8EfBA

Signature: e82GTcQn9Rjir1QMNw19/wTkAYA=

So that part is fine as well.

 * The field order in the Authorization: header does not matter.
 
 Is it the order in the URL and the Signature then that is the
 magic ?
Ordering the fields is only necessary for the Base String.


 I don't know which secrets you are using so I can't verify your
 signature generation, although I assume that it is correct.
 
 heck, i'm willing to post the key and secret so you can follow along -
 it is tied to a test app so I can blow them away at anytime.

 Tom
 
 thanks for the response

Tom


[twitter-dev] Re: python oauth2 and twitter - invalid signature issue

2010-08-12 Thread bear


On Aug 12, 8:52 am, Tom van der Woerdt i...@tvdw.eu wrote:
 On 8/12/10 2:37 PM, bear wrote:





  On Aug 12, 7:57 am, Tom van der Woerdt i...@tvdw.eu wrote:
  On 8/12/10 1:33 PM, bear wrote:

  I'm working on bringing the python-twitter library up to date with
  respect to using oAuth and i'm running into a brick wall...

  I've scanned the group postings and by far it seems that the most
  common issue when generating a request is that the order of items in
  the url param list is not the same as the order of items sent off to
  be signed *and* that said item list must be sorted.

  Using the debug key/secret values from the wiki, I generate the
  following:

  (debug output from python's urllib2, formatted to wrap so it's
  readable)
  GET /1/account/verify_credentials.json?
  oauth_nonce=26979601
  oauth_timestamp=1281612120
  oauth_consumer_key=GDdmIQH6jhtmLUypg82g
  oauth_signature_method=HMAC-SHA1
  oauth_version=1.0
  oauth_token=819797-Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw
  oauth_signature=e82GTcQn9Rjir1QMNw19%2FwTkAYA%3D
  HTTP/1.1\r\n
  Accept-Encoding: identity\r\n
  Host: api.twitter.com\r\n
  Connection: close\r\n
  Authorization: OAuth realm=, oauth_nonce=26979601,
  oauth_timestamp=1281612120,
  oauth_consumer_key=GDdmIQH6jhtmLUypg82g,
  oauth_signature_method=HMAC-SHA1, oauth_version=1.0,
  oauth_token=819797-Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw,
  oauth_signature=e82GTcQn9Rjir1QMNw19%2FwTkAYA%3D\r\n\r\n'

  and this is the raw data being signed:

  GEThttps%3A%2F%2Fapi.twitter.com%2F1%2Faccount
  %2Fverify_credentials.jsonoauth_consumer_key%3DGDdmIQH6jhtmLUypg82g
  %26oauth_nonce%3D26979601%26oauth_signature_method%3DHMAC-
  SHA1%26oauth_timestamp%3D1281612120%26oauth_token%3D819797-
  Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw%26oauth_version%3D1.0

  First thing I notice is that the ordering of the oauth_* items is all
  over the place (i'll be sending a message to the python-oauth2 folks
  once I figure out where they are hanging out) but even when I correct
  for that and run it again, I *still* get an Invalid Signature error
  from Twitter!

  Here is the same debug run where all of the oauth_* items are sorted:
  (debug output from urllib2, formatted so it's readable)
  GET /1/account/verify_credentials.json?
  oauth_consumer_key=GDdmIQH6jhtmLUypg82g
  oauth_nonce=21793837
  oauth_signature=5AQnyr09ZBcRz95SDPFOKizBEoo%3D
  oauth_signature_method=HMAC-SHA1
  oauth_timestamp=1281612568
  oauth_token=819797-Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw
  oauth_version=1.0
  HTTP/1.1\r\n
  Accept-Encoding: identity\r\n
  Host: api.twitter.com\r\n
  Connection: close\r\n
  Authorization: OAuth oauth_consumer_key=GDdmIQH6jhtmLUypg82g,
  oauth_nonce=21793837, oauth_signature=5AQnyr09ZBcRz95SDPFOKizBEoo
  %3D, oauth_signature_method=HMAC-SHA1,
  oauth_timestamp=1281612568, oauth_token=819797-
  Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw, oauth_version=1.0\r\n\r
  \n'

  raw data being signed:

  GEThttps%3A%2F%2Fapi.twitter.com%2F1%2Faccount
  %2Fverify_credentials.jsonoauth_consumer_key%3DGDdmIQH6jhtmLUypg82g
  %26oauth_nonce%3D21793837%26oauth_signature_method%3DHMAC-
  SHA1%26oauth_timestamp%3D1281612568%26oauth_token%3D819797-
  Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw%26oauth_version%3D1.0

  looking for any clue-sticks, lifelines or hell, even a RTFM with a url
  - thanks!

  Hi,

  Multiple things.
  * You don't have to send the oauth_* parameters in both the query and
  the Authorization: header.

  The library i'm using does that - not sure why.  I'll explore removing
  all but oauth_signature in a bit.

 Sorry if you misunderstood me. You should send all of them only once -
 either in the Authorization header or in the query.

Ah - I did completely get what you were saying wrong.  As soon as I
removed it from the header everything started to work!

amazing what happens when you pay attention ;)


  * The Base String seems fine, but you should not be using the keys on
  the wiki - they are random keys and will not work. (!)

  I used the wiki keys only because another post (oAuth and
  AppleScript) someone requested that they use those keys so that the
  signature value could be compared - I did the same.  I get Invalid
  Signature when using keys that I've gotten back from Twitter

 That was me.

 Using this base string :
 GEThttps%3A%2F%2Fapi.twitter.com%2F1%2Faccount%2Fverify_credentials.jsono 
 auth_consumer_key%3DGDdmIQH6jhtmLUypg82g%26oauth_nonce%3D26979601%26oauth_s 
 ignature_method%3DHMAC-SHA1%26oauth_timestamp%3D1281612120%26oauth_token%3D 
 819797-Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw%26oauth_version%3D1.0

 Key:
 MCD8BKwGdgPHvAuvgvz4EQpqDAtx89grbuNMRd7Eh98J6zix3FfA9LofH0awS24M3HcBYXO5nI 
 1iYe8EfBA

 Signature: e82GTcQn9Rjir1QMNw19/wTkAYA=

 So that part is fine as well.

  * The field order in the Authorization: header does not matter.

  Is it the order in the URL and the Signature then that is the
  magic ?

 Ordering the fields is only necessary 

[twitter-dev] Re: Failed to validate oauth signature and token

2010-08-12 Thread Dommer
I messed around with hand-endcoding oauth urls as well and finally
gave up.

There are a plethora of APIs out there that take care of all this for
you.
Personally I am using @anywhere on the client and twitter4j on the
server.

Really seamless, and now I can focus my app (www.standard3d.com).


On Aug 12, 8:09 am, Lumpizaver demsarj...@gmail.com wrote:
 I cannot get the oAuth to work properly.

 I am trying to get a web response of a string that looks like 
 this:https://twitter.com/oauth/request_token?
 oauth_callback=http://win.plane.si/TwittRank/tweets.aspx
 oauth_consumer_key=[MY CONSUMER KEY]
 oauth_nonce=8536829
 oauth_signature_method=HMAC-SHA1
 oauth_timestamp=1281614745
 oauth_token=[MY ACCESS TOKEN]
 oauth_version=1.0
 oauth_signature=OTNQE/CGAcVemax9egTA5LFw04w=}

 I get the exception: The remote server returned an error: (401)
 Unauthorized.

 If I visit the URL above in browser i get:

 Failed to validate oauth signature and token

 Thanks for your help.

 Jure


[twitter-dev] Introducing the Tweet Button

2010-08-12 Thread themattharris
Hey everyone,

Today we’re launching the Tweet Button to make it easy for your users
to share your website with their followers. When they click on the
Tweet Button, a Tweet box will appear pre-populated with a message and
link chosen by you. Once they have sent a Tweet they can choose to
follow accounts recommended by you. All of this happens on your
website, so the user never has to leave.

You have complete control over the suggested text of the Tweet Button,
who the Tweet should be attributed to and recommendations of who to
follow. All of this is possible through a line of javascript and a few
URL parameters or data attributes of a link.

To add this to your own site grab it from http://twitter.com/tweetbutton,
or create your own using our developer documentation,
http://dev.twitter.com/pages/tweet_button

Read more about the Tweet Button on our blog,
http://blog.twitter.com/2010/08/pushing-our-tweet-button.html

Best
Matt

--


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris


[twitter-dev] Re: Problems Loading Profile Images

2010-08-12 Thread neil...@googlemail.com
Yep I am seeing same problem. API return OK, but no update is made.
Any movement on this, are twitter guys aware of the issue ?

@MyAvatars
Neil Pepper

Thanks

On Jul 25, 12:24 pm, Bob movingforwa...@gmail.com wrote:
 We are also seeing that the issue withprofileimage updates returning
 a 200OK but not updating the image has returned.

 Please advise if you are aware of the problem / if you are working on
 it.

 Bob

 Founder
 Twibbon.com

 On Jul 23, 2:28 am, Ron rbther...@gmail.com wrote:

  So it looks like the problem is back, and perhaps time sensitive.
  Servers affected are a0, a1, and a3.twing.com.  Problem is no response
  from server. URLs all look ok, but a few perhaps very long 
  (i.e.http://a3.twimg.com/profile_images/598514017/l_58bce087ff00416383ca2b...).

  On Jul 22,e 6:36 pm, Ron rbther...@gmail.com wrote:

   Hi Taylor,

   Tried again this afternoon and operation appears normal, except for an
   occasionalprofileimage not loading. I find about 1 out of 200. An
   example is hiro07118.

   Ron

   On Jul 22, 10:42 am, Ron rbther...@gmail.com wrote:

Right now it all seems back to working normally again.  I'll look at
it again late this afternoon about the same time I saw the issue
yesterday. Perhaps it's time related.  If it occurs again, I'll take
some captures and send them along.

On Jul 22, 10:29 am, Taylor Singletary taylorsinglet...@twitter.com
wrote:

 If possible, can you send along member ids or screen names, and if
 possible, an HTTP capture of the image download attempt?

 Thanks!
 Taylor

 On Wed, Jul 21, 2010 at 8:12 PM, Ron rbther...@gmail.com wrote:
  Same problem seems to be back - slow/noprofileimage downloads.

  On Jul 21, 3:14 pm, Ron rbther...@gmail.com wrote:
  Not seen it happen at all anymore since corrections were made.

  On Jul 21, 2:08 pm, Taylor Singletary 
  taylorsinglet...@twitter.com
  wrote:

   Hi Everyone,

   We had some issues withprofileupdates and image uploads last week
   and early this week. Some images uploaded in that time period 
   resulted
   in incorrect image URLs, and while this should now be fixed for 
   more
   recently updated/created images, those with avatars saved while 
   in
   this state will likely remain in that state until they re-upload 
   their
   image.

   What kind of percentages are you seeing in regards to 
   missing/broken images?

   Taylor

   On Wed, Jul 21, 2010 at 5:35 AM, luisg 
   luisfmgoncal...@gmail.com wrote:
I'm having the same problem too... But just sometimes.
Anyway, looks like Twitter is better now... At least is not so 
slow as
was a couple of weeks ago.

On Jul 21, 4:59 am, Ron rbther...@gmail.com wrote:
Anyone noticing problems loadingprofileimages (slow, no image
returned, hanging...)?  Seems to show up mostly on Public and 
Search
endpoints.




[twitter-dev] Streaming API and lists

2010-08-12 Thread thiago
Hello there,

 Does anyone knows if it's possible to use the streaming api to
follow a list instead of a user?
 I already tried using the list id as the follow parameter with no
success...

Regards,
Thiago Souza


[twitter-dev] Re: Introducing the Tweet Button

2010-08-12 Thread nischalshetty
Awesome! Looks good and so many customizations while still being
simple and easy to configure makes it a winner!

-Nischal

On Aug 12, 8:28 pm, themattharris thematthar...@twitter.com wrote:
 Hey everyone,

 Today we’re launching the Tweet Button to make it easy for your users
 to share your website with their followers. When they click on the
 Tweet Button, a Tweet box will appear pre-populated with a message and
 link chosen by you. Once they have sent a Tweet they can choose to
 follow accounts recommended by you. All of this happens on your
 website, so the user never has to leave.

 You have complete control over the suggested text of the Tweet Button,
 who the Tweet should be attributed to and recommendations of who to
 follow. All of this is possible through a line of javascript and a few
 URL parameters or data attributes of a link.

 To add this to your own site grab it fromhttp://twitter.com/tweetbutton,
 or create your own using our developer 
 documentation,http://dev.twitter.com/pages/tweet_button

 Read more about the Tweet Button on our 
 blog,http://blog.twitter.com/2010/08/pushing-our-tweet-button.html

 Best
 Matt

 --

 Matt Harris
 Developer Advocate, Twitterhttp://twitter.com/themattharris


Re: [twitter-dev] Streaming API and lists

2010-08-12 Thread John Kalucki
If everyone on the list is public, you can fetch the user ids via REST, then
use follow. Protected accounts won't show, of course. Also, on User Streams,
you cannot specify your follow list.

-John Kalucki
http://twitter.com/jkalucki
Twitter, Inc.


On Thu, Aug 12, 2010 at 8:39 AM, thiago tcostaso...@gmail.com wrote:

 Hello there,

 Does anyone knows if it's possible to use the streaming api to
 follow a list instead of a user?
 I already tried using the list id as the follow parameter with no
 success...

 Regards,
 Thiago Souza



Re: [twitter-dev] Streaming API and lists

2010-08-12 Thread Matt Harris
Hi Thiago,

The streaming API allows you to follow user IDs and track keywords but not
lists directly. Instead you need to follow all the user IDs of the list and
then assemble their Tweets on your server to recreate the list.

Hope that helps,
Matt

On Thu, Aug 12, 2010 at 8:39 AM, thiago tcostaso...@gmail.com wrote:

 Hello there,

 Does anyone knows if it's possible to use the streaming api to
 follow a list instead of a user?
 I already tried using the list id as the follow parameter with no
 success...

 Regards,
 Thiago Souza




-- 


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris


[twitter-dev] Multiple data-related variables in Tweet Button

2010-08-12 Thread epitaphmike
What would be the easiest way to add multiple accounts to suggest
people to follow after they use the new tweet button. We have 6
accounts for our Hockey Team and would like to suggest that our
followers follow all of them.


[twitter-dev] What is the history of Twitter's search history?

2010-08-12 Thread AdamD
It appears that Twitter search is down to four days of backlog now. It
was five days a couple weeks ago. And in the back of my memory there
was once months of search history.

Is there a record anywhere of changes to the history? And I think I
understand the purpose of decreasing the history, but is there an
official reason for the changes?

Thanks,
Adam DuVander
ProgrammableWeb


[twitter-dev] Re: oauth/request_token issue - 401 unauthorized

2010-08-12 Thread ivan_m5
OK, finally I got my code to work.
The problem was in how I registered application on Twitter, and not in
my code.

1) Register application as a Browser, not as a Client one;
2) Register callback URL used in application.

Can't think of any reason first setting differs in meaning from other
OAuth-authenticated resources,
and wish second issue was described somewhere in documentation, or at
least some descriptive debug information was returned in HTTP response
instead of plain Failed to validate oauth signature and token, which
is not a case.

Best regards,

Ivan


On Jul 27, 8:23 pm, ivan_m5 i.mis...@gmail.com wrote:
 Hi everybody,

 I have my own Objective-C OAuth library. It's working pretty well for
 habrahabr.ru and hyves.nl currently.
 But I'm unable to get it work with Twitter.
 I've come across a lot of postings around here regarding users unable
 to obtain temporary request token.

 I've validated my request 
 athttp://hueniverse.com/2008/10/beginners-guide-to-oauth-part-iv-signin...
 and signature is calculated OK.

 Here's my POST data (adapted so that I can validate request at the
 page above):

 POSThttps://api.twitter.com/oauth/request_token?force_login=trueoauth_ca...
 consumer_secret=T5GW1wAGewlFY9CIyYXmYvGApQQHM3cez20Risxc
 base_string=POSThttps%3A%2F%2Fapi.twitter.com%2Foauth
 %2Frequest_tokenforce_login%3Dtrue%26oauth_callback%3Dhttp%253A%252F
 %252Flocalhost%252Fx-oauth-mobile-success%252F%26oauth_consumer_key
 %3Dg4kGtt9OflmGNGfEPQAaw%26oauth_nonce
 %3D37071428662683%26oauth_signature_method%3DHMAC-
 SHA1%26oauth_timestamp%3D1280250833%26oauth_token%3D%26oauth_version
 %3D1.0
 DIGEST=eZg+qEBXeFDSfFq6Chxyt9/3pvU=

 And the header:
 Authorization: OAuth realm=https://api.twitter.com/oauth/
 request_token, oauth_consumer_key=g4kGtt9OflmGNGfEPQAaw,
 oauth_token=, oauth_signature_method=HMAC-SHA1,
 oauth_timestamp=1280250833, oauth_nonce=37071428662683,
 oauth_version=1.0, oauth_signature=eZg%2BqEBXeFDSfFq6Chxyt9%2F3pvU
 %3D

 And the response is:
 =
 401 unauthorized
 Server=hi
 Vary=Accept-Encoding
 Last-Modified=Tue, 27 Jul 2010 17:15:31 GMT
 Cache-Control=no-cache, no-store, must-revalidate, pre-check=0, post-
 check=0
 X-Revision=DEV
 Status=401 Unauthorized
 Date=Tue, 27 Jul 2010 17:15:31 GMT
 Expires=Tue, 31 Mar 1981 05:00:00 GMT
 Pragma=no-cache
 X-Runtime=0.00686
 X-Transaction=1280250931-50619-29066
 Set-
 Cookie=_twitter_sess=BAh7CDoPY3JlYXRlZF9hdGwrCNrj5hQqASIKZmxhc2hJQzonQWN0aW9uQ29u
 %250AdHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7ADoHaWQiJWUx
 %250ANTY3YmQ0MTdmOGY3ZDQxMWY1NDNjNDIzOThmNDRl--
 eeba367f81559ae97d63fddfa8df09251ceab44f; domain=.twitter.com; path=/
 Content-Encoding=gzip
 Content-Length=62
 Content-Type=text/html; charset=utf-8
 Connection=close

 Failed to validate oauth signature and token
 =

 Are there issues on server-side? Thanks in advance.


Re: [twitter-dev] Multiple data-related variables in Tweet Button

2010-08-12 Thread Marcelo Calbucci
You can't. You are limited to 1 primary account (which will appear at the
end on the tweet as via @account), and you can add 1 alternate account.
That's all.

TweepML.org provides a way for people to follow multiple accounts at once,
but it's not like the Tweet button. People are sent to another website.

On Thu, Aug 12, 2010 at 10:04 AM, epitaphmike epitaphm...@gmail.com wrote:

 What would be the easiest way to add multiple accounts to suggest
 people to follow after they use the new tweet button. We have 6
 accounts for our Hockey Team and would like to suggest that our
 followers follow all of them.




-- 
-Marcelo

Twitter: @calbucci http://twitter.com/calbucci | blog.calbucci.com | Seattle
2.0 http://www.seattle20.com/


Re: [twitter-dev] Multiple data-related variables in Tweet Button

2010-08-12 Thread Matt Harris
Hey,

The related attribute takes a comma separated list of accounts to recommend
once the user Tweets but will only display a maximum of two. In the FAQ [1]
we explain this is more detail:
The Share Box will show two recommended accounts who the logged in user
doesn’t already follow. By default the via user is shown first with the
first related account shown afterwards. If the logged in user already
follows the via user we will instead show the first two related accounts the
user doesn’t already follow. There will be no recommended users displayed if
the user follows all the suggested (via and related) accounts.

Hope that clarifies the current setup.
Matt

1. http://dev.twitter.com/pages/tweet_button_faq#ordering-of-recommended

On Thu, Aug 12, 2010 at 10:04 AM, epitaphmike epitaphm...@gmail.com wrote:

 What would be the easiest way to add multiple accounts to suggest
 people to follow after they use the new tweet button. We have 6
 accounts for our Hockey Team and would like to suggest that our
 followers follow all of them.




-- 


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris


Re: [twitter-dev] Introducing the Tweet Button

2010-08-12 Thread Clint Ecker
On Thu, Aug 12, 2010 at 10:28 AM, themattharris
thematthar...@twitter.com wrote:
 Today we’re launching the Tweet Button to make it easy for your users
 to share your website with their followers. When they click on the
 Tweet Button, a Tweet box will appear pre-populated with a message and
 link chosen by you. Once they have sent a Tweet they can choose to
 follow accounts recommended by you. All of this happens on your
 website, so the user never has to leave.

Hi Matt,

I'd really like to use this on Ars Technica, but it seems to force the
t.co shortener on us.  We have our own shorturl system (arst.ch) and I
need to use that.  Can you explain how I might go about doing
that—I've scoured the docs and have seen no mention of custom Short
URLs.

Thanks!
Clint


[twitter-dev] Re: Multiple data-related variables in Tweet Button

2010-08-12 Thread epitaphmike
It would be nice if there could be a few accounts in the list at the
end. Maybe create a cap like 5, instead of just one.


Re: [twitter-dev] What is the history of Twitter's search history?

2010-08-12 Thread Tom van der Woerdt
Hello Adam,

I think I can give you an explanation.

Twitter will only search through, for example, 50 million tweets. If this 
becomes more, then the search becomes slow.

For the same reason it will only index interesting tweets. You wouldn't want 40 
million of this 50 million to be spam ;-)

Tom

Sent from my iPod

On 12 aug. 2010, at 19:47, AdamD duvan...@gmail.com wrote:

 It appears that Twitter search is down to four days of backlog now. It
 was five days a couple weeks ago. And in the back of my memory there
 was once months of search history.
 
 Is there a record anywhere of changes to the history? And I think I
 understand the purpose of decreasing the history, but is there an
 official reason for the changes?
 
 Thanks,
 Adam DuVander
 ProgrammableWeb


[twitter-dev] Re: Search API bug when using lang parameter

2010-08-12 Thread germboy
Not sure if this matters, but I've tried using no authentication and
oauth authentication for this search API call, and am receiving the
same results for both.

For a while now, I've been tweeting this bug at @twitterapi and
@twitter  searching for people who've come across it, and I'm coming
up empty. It's a huge problem for me and my app development. Am I just
overlooking something?


Re: [twitter-dev] What is the history of Twitter's search history?

2010-08-12 Thread Nick Arnett
On Thu, Aug 12, 2010 at 11:43 AM, Tom van der Woerdt i...@tvdw.eu wrote:


 For the same reason it will only index interesting tweets. You wouldn't
 want 40 million of this 50 million to be spam ;-)


Wow. When our computers can calculate what is interesting to us, our world
will be transformed... But I know what you meant.

I've been trying to get computers to show me interesting things for decades,
but they aren't getting much smarter about it.

Oh, for a button that says Show me only interesting stuff that works!

Nick


Re: [twitter-dev] What is the history of Twitter's search history?

2010-08-12 Thread Tom van der Woerdt
On 8/12/10 9:00 PM, Nick Arnett wrote:
 
 
 On Thu, Aug 12, 2010 at 11:43 AM, Tom van der Woerdt i...@tvdw.eu
 mailto:i...@tvdw.eu wrote:
 
 
 For the same reason it will only index interesting tweets. You
 wouldn't want 40 million of this 50 million to be spam ;-)
 
 
 Wow. When our computers can calculate what is interesting to us, our
 world will be transformed... But I know what you meant.
 
 I've been trying to get computers to show me interesting things for
 decades, but they aren't getting much smarter about it.
 
 Oh, for a button that says Show me only interesting stuff that works!
 
 Nick
 

Sorry - I wanted to keep my e-mail short because I was typing from my
bike - but you are right. That would be awesome :-)

Tom


[twitter-dev] Re: Count the favourited tweets of a specific user

2010-08-12 Thread Georgios
Hi Joachim

This is not available from the Twitter API but it is available from
our website, Favorious: http://favorious.com

You can easily find out the tweets of a user that have been favorited,
how many times they have been favorites and who has favorited them.
Have a look and let us  know if you have any questions.

For example, my favorited (we call them popular) tweets are in:
http://favorious.com/people/georgioskap

Cheers
Georgios

Favorious - The best of Twitter, based on favorites.



On Aug 5, 4:13 pm, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 Hi Joachim.

 There's no direct way to accomplish this right now and we don't have any
 official plans to enable this at this time.

 Taylor

 On Thu, Aug 5, 2010 at 5:46 AM, Joachim Seibert
 jseib...@seibert-media.netwrote:



  Hi there,

  I'm searching for the possibility to get the number how often tweets of a
  specific user are marked as  a favourite.

  While searching I came across this feature wish:
 http://code.google.com/p/twitter-api/issues/detail?id=459,
  which is marked as Wontfix.

  favouritedtrue/false/favourited in /1/statuses/show/id won't help,
  because if I understand right, true is only given, if the authenticated
  api user has marked this tweet himself as favourite.

  Is there another posibility to get this number? Or is there anything
  planned for the future?

  Thanks for your answer and best wishes.

  Joachim Seibert / Dipl.-Inf. (FH)
  //SEIBERT/MEDIA/TECHNOLOGIES

  --
   www.seibert-media.net/http://blog.seibert-media.net


[twitter-dev] WordPress

2010-08-12 Thread ClaudioLessa
Is there a step-by-step set of instructions on how to apply the tweet
button to a WordPress blog? Thanks!


Re: [twitter-dev] WordPress

2010-08-12 Thread Tom van der Woerdt
On 8/12/10 8:52 PM, ClaudioLessa wrote:
 Is there a step-by-step set of instructions on how to apply the tweet
 button to a WordPress blog? Thanks!

Hi,

If you host your blog at wordpress.com :
http://thenextweb.com/socialmedia/2010/08/12/the-new-tweet-button-launches-for-wordpress-com-users/

If you host your own blog, then I don't know - you will most likely have
to wait until an addon is released, or write your own.

Tom


Re: [twitter-dev] Introducing the Tweet Button

2010-08-12 Thread Abraham Williams
Clint,

Include a data-url attribute in the a element. It will get wrapped in a
t.co but the user will still hit the arst.ch domain.

a href=http://twitter.com/share; class=twitter-share-button data-url=
http://arst.ch/xyz; data-count=vertical
data-via=abrahamTweet/ascript type=text/javascript src=
http://platform.twitter.com/widgets.js;/script

Abraham
-
Abraham Williams | Hacker Advocate | http://abrah.am
@abraham | http://projects.abrah.am | http://blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.


On Thu, Aug 12, 2010 at 11:30, Clint Ecker clintec...@gmail.com wrote:

 On Thu, Aug 12, 2010 at 10:28 AM, themattharris
 thematthar...@twitter.com wrote:
  Today we’re launching the Tweet Button to make it easy for your users
  to share your website with their followers. When they click on the
  Tweet Button, a Tweet box will appear pre-populated with a message and
  link chosen by you. Once they have sent a Tweet they can choose to
  follow accounts recommended by you. All of this happens on your
  website, so the user never has to leave.

 Hi Matt,

 I'd really like to use this on Ars Technica, but it seems to force the
 t.co shortener on us.  We have our own shorturl system (arst.ch) and I
 need to use that.  Can you explain how I might go about doing
 that—I've scoured the docs and have seen no mention of custom Short
 URLs.

 Thanks!
 Clint



[twitter-dev] Re: Streaming API and lists

2010-08-12 Thread Decklin Foster
On Aug 12, 11:46 am, Matt Harris thematthar...@twitter.com wrote:
 The streaming API allows you to follow user IDs and track keywords but not
 lists directly. Instead you need to follow all the user IDs of the list and
 then assemble their Tweets on your server to recreate the list.

The limit for a list is 500 members, but we can only follow 400 user
ids
by default with the streaming API. Is there any way around this?


[twitter-dev] Twitter Streaming API 401

2010-08-12 Thread benofsky
Hi,

I'm getting a lot of 401 errors on the streaming api using the sample
method. I am using basic authentication through the username
clarity_li. I am backing off as suggested in the documentation, with
an initial wait of 10 seconds, doubling each 4xx error and capping at
240 seconds.

I can't work out why this is happening, it usually works for a few
minute before this happens, if I get disconnected intentionally I wait
1 second before reconnecting, if there is a network error I follow the
guidelines in the documentation.

The only other reason supplied in the docs which could be causing this
is if the client is too slow, but I am on a 100mbps university
internet connection and take approximately 1ms to process each
incoming tweet.

I would be very grateful for any help.

Regards,
Ben


[twitter-dev] Re: Multiple data-related variables in Tweet Button

2010-08-12 Thread epitaphmike
I am testing the comma separated list and it seems to stop suggesting
after a certain number in the list. For example I have 7 accounts in
the list, the first listed account i do not follow, the next 5 i do
follow and the last account I do not follow. When I tested the button,
it only displayed the first unfollowed account and didnt display both
the first listed and the last listed which I dont follow.

Do you know if there is a limit of how deep twitter checks the
following?


On Aug 12, 10:59 am, Matt Harris thematthar...@twitter.com wrote:
 Hey,

 The related attribute takes a comma separated list of accounts to recommend
 once the user Tweets but will only display a maximum of two. In the FAQ [1]
 we explain this is more detail:
 The Share Box will show two recommended accounts who the logged in user
 doesn’t already follow. By default the via user is shown first with the
 first related account shown afterwards. If the logged in user already
 follows the via user we will instead show the first two related accounts the
 user doesn’t already follow. There will be no recommended users displayed if
 the user follows all the suggested (via and related) accounts.

 Hope that clarifies the current setup.
 Matt

 1.http://dev.twitter.com/pages/tweet_button_faq#ordering-of-recommended

 On Thu, Aug 12, 2010 at 10:04 AM, epitaphmike epitaphm...@gmail.com wrote:
  What would be the easiest way to add multiple accounts to suggest
  people to follow after they use the new tweet button. We have 6
  accounts for our Hockey Team and would like to suggest that our
  followers follow all of them.

 --

 Matt Harris
 Developer Advocate, Twitterhttp://twitter.com/themattharris


Re: [twitter-dev] Re: Streaming API and lists

2010-08-12 Thread Tom van der Woerdt
On 8/12/10 9:33 PM, Decklin Foster wrote:
 On Aug 12, 11:46 am, Matt Harris thematthar...@twitter.com wrote:
 The streaming API allows you to follow user IDs and track keywords but not
 lists directly. Instead you need to follow all the user IDs of the list and
 then assemble their Tweets on your server to recreate the list.
 
 The limit for a list is 500 members, but we can only follow 400 user
 ids
 by default with the streaming API. Is there any way around this?

You could create two connections, but this is not allowed. So, no.
Although it depends on the type of application - if it is a server-based
application, you can request a raise of these limits.

Tom


Re: [twitter-dev] Introducing the Tweet Button

2010-08-12 Thread Matt Harris
Hi Clint,

The Tweet Button will wrap any URL sent to it as a t.co link so although you
can use your own shortener we will still create a t.co link for it. We don't
unwrap the short URL, so any analytics you have attached to your shortener
can still happen. We also return the URL you sent us with our API responses
so clients can display your URL whilst linked to t.co first. This is made
possible by passing the flag include_entities=1 to any method that returns a
status.

You can learn more about t.co here:
  http://support.twitter.com/entries/109623

Hope that helps,
Matt


On Thu, Aug 12, 2010 at 11:30 AM, Clint Ecker clintec...@gmail.com wrote:

 On Thu, Aug 12, 2010 at 10:28 AM, themattharris
 thematthar...@twitter.com wrote:
  Today we’re launching the Tweet Button to make it easy for your users
  to share your website with their followers. When they click on the
  Tweet Button, a Tweet box will appear pre-populated with a message and
  link chosen by you. Once they have sent a Tweet they can choose to
  follow accounts recommended by you. All of this happens on your
  website, so the user never has to leave.

 Hi Matt,

 I'd really like to use this on Ars Technica, but it seems to force the
 t.co shortener on us.  We have our own shorturl system (arst.ch) and I
 need to use that.  Can you explain how I might go about doing
 that—I've scoured the docs and have seen no mention of custom Short
 URLs.

 Thanks!
 Clint




-- 


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris


Re: [twitter-dev] Re: Problems Loading Profile Images

2010-08-12 Thread Matt Harris
Hey,

We're tracking this issue on our bug tracker. In that thread there are a
number of examples and solutions that have helped users, as well as an
explanation of how the asynchronous processing affects what is happening.

Im summary. the reason the old avatar profile image URL is being returned is
because we haven't yet processed the uploaded image. This is because images
which are uploaded are processed asynchronous instead of during the POST
request. What this means is the profile image URL only gets updated when,
and if, the image conversion is successful. For developers this means a few
things:

1) A 200 OK from an image upload means we received the file, it doesn't mean
the profile image was updated successfully.
2) To know if the image upload was successful developers need to either:
  a) query /1/users/profile_image/:screen_name and cache the URL you are
redirected to (more details:
http://dev.twitter.com/doc/get/users/profile_image/:screen_name)
  b) wait until the next time you call /1/account/verify_credentials
In both cases if the image URL is different the profile image was
successfully updated.
3) If the URL doesn't change the profile image update was unsuccessful.

This isn't ideal we know. What I can tell you is we have engineers working
on improving this and providing a more reliable way for you to find out if
the image was successfully updated or not.

Hope that explains the situation more clearly for you. As we have news we'll
update the developer list as well as the public ticket on our Google Code
project:
  http://code.google.com/p/twitter-api/issues/detail?id=1745

Matt

On Thu, Aug 12, 2010 at 8:38 AM, neil...@googlemail.com 
neil...@googlemail.com wrote:

 Yep I am seeing same problem. API return OK, but no update is made.
 Any movement on this, are twitter guys aware of the issue ?

 @MyAvatars
 Neil Pepper

 Thanks

 On Jul 25, 12:24 pm, Bob movingforwa...@gmail.com wrote:
  We are also seeing that the issue withprofileimage updates returning
  a 200OK but not updating the image has returned.
 
  Please advise if you are aware of the problem / if you are working on
  it.
 
  Bob
 
  Founder
  Twibbon.com
 
  On Jul 23, 2:28 am, Ron rbther...@gmail.com wrote:
 
   So it looks like the problem is back, and perhaps time sensitive.
   Servers affected are a0, a1, and a3.twing.com.  Problem is no response
   from server. URLs all look ok, but a few perhaps very long (i.e.
 http://a3.twimg.com/profile_images/598514017/l_58bce087ff00416383ca2b...).
 
   On Jul 22,e 6:36 pm, Ron rbther...@gmail.com wrote:
 
Hi Taylor,
 
Tried again this afternoon and operation appears normal, except for
 an
occasionalprofileimage not loading. I find about 1 out of 200. An
example is hiro07118.
 
Ron
 
On Jul 22, 10:42 am, Ron rbther...@gmail.com wrote:
 
 Right now it all seems back to working normally again.  I'll look
 at
 it again late this afternoon about the same time I saw the issue
 yesterday. Perhaps it's time related.  If it occurs again, I'll
 take
 some captures and send them along.
 
 On Jul 22, 10:29 am, Taylor Singletary 
 taylorsinglet...@twitter.com
 wrote:
 
  If possible, can you send along member ids or screen names, and
 if
  possible, an HTTP capture of the image download attempt?
 
  Thanks!
  Taylor
 
  On Wed, Jul 21, 2010 at 8:12 PM, Ron rbther...@gmail.com
 wrote:
   Same problem seems to be back - slow/noprofileimage downloads.
 
   On Jul 21, 3:14 pm, Ron rbther...@gmail.com wrote:
   Not seen it happen at all anymore since corrections were made.
 
   On Jul 21, 2:08 pm, Taylor Singletary 
 taylorsinglet...@twitter.com
   wrote:
 
Hi Everyone,
 
We had some issues withprofileupdates and image uploads last
 week
and early this week. Some images uploaded in that time
 period resulted
in incorrect image URLs, and while this should now be fixed
 for more
recently updated/created images, those with avatars saved
 while in
this state will likely remain in that state until they
 re-upload their
image.
 
What kind of percentages are you seeing in regards to
 missing/broken images?
 
Taylor
 
On Wed, Jul 21, 2010 at 5:35 AM, luisg 
 luisfmgoncal...@gmail.com wrote:
 I'm having the same problem too... But just sometimes.
 Anyway, looks like Twitter is better now... At least is
 not so slow as
 was a couple of weeks ago.
 
 On Jul 21, 4:59 am, Ron rbther...@gmail.com wrote:
 Anyone noticing problems loadingprofileimages (slow, no
 image
 returned, hanging...)?  Seems to show up mostly on Public
 and Search
 endpoints.
 
 




-- 


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris


Re: [twitter-dev] What is the history of Twitter's search history?

2010-08-12 Thread Matt Harris
To add to this, the exact search index is related to the frequency of Tweets
and their relevance. The role of search.twitter.com is to provide a
real-time, relevant search of what is being discussed on Twitter now instead
of an archival search through the history of Twitter. A good resource to
understand what isn't indexed in search is this help article:

http://support.twitter.com/groups/32-something-s-not-working/topics/118-search/articles/66018-my-tweets-or-hashtags-are-missing-from-search-known-issue

To answer your question about the search index history, we don't publish
that information. The size of the index fluctuates based on the number of
Tweets being made which means, the more Tweets there are the shorter the
index period is.
We're working to improve the duration of the search index and improve the
relevance of the results.

Best,
Matt

On Thu, Aug 12, 2010 at 10:47 AM, AdamD duvan...@gmail.com wrote:

 It appears that Twitter search is down to four days of backlog now. It
 was five days a couple weeks ago. And in the back of my memory there
 was once months of search history.

 Is there a record anywhere of changes to the history? And I think I
 understand the purpose of decreasing the history, but is there an
 official reason for the changes?

 Thanks,
 Adam DuVander
 ProgrammableWeb




-- 


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris


Re: [twitter-dev] WordPress

2010-08-12 Thread Matt Harris
Until a Tweet Button plugin is released you could add a button by either
visiting our Tweet Button page [1] and coping the code, or follow our
developer documentation [2].

Best,
Matt

1. http://twitter.com/tweetbutton
2. http://dev.twitter.com/pages/tweet_button


On Thu, Aug 12, 2010 at 12:15 PM, Tom van der Woerdt i...@tvdw.eu wrote:

 On 8/12/10 8:52 PM, ClaudioLessa wrote:
  Is there a step-by-step set of instructions on how to apply the tweet
  button to a WordPress blog? Thanks!

 Hi,

 If you host your blog at wordpress.com :

 http://thenextweb.com/socialmedia/2010/08/12/the-new-tweet-button-launches-for-wordpress-com-users/

 If you host your own blog, then I don't know - you will most likely have
 to wait until an addon is released, or write your own.

 Tom




-- 


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris


[twitter-dev] Re: stream.twitter.com/1/statuses/filter

2010-08-12 Thread kme
I see, so it's not really a key/value pair then, it's the uri-encoded
expression as a whole?

On Aug 11, 9:47 pm, Matt Harris thematthar...@twitter.com wrote:
 Hey,

 To follow users you need to POST the user IDs you want to follow as a comma
 separated list. For example to follow @themattharris you would POST
 follow=777925

 If you're still having problems let us see the API request you are making
 and we'll see what's up.

 Matt

 On Wed, Aug 11, 2010 at 8:26 PM, kme km.ens...@gmail.com wrote:
  I am trying to use the streaming API to return result sets of for
  specific users. For some reason, no user is being located by the id
  specified. Is there something not documented with these calls?

 http://dev.twitter.com/pages/streaming_api_methods#follow

  any info someone has is greatly appreciated!

 --

 Matt Harris
 Developer Advocate, Twitterhttp://twitter.com/themattharris


[twitter-dev] Re: Twitter Launching Official Tweet Buttons This Week??

2010-08-12 Thread pthomsen
On Aug 11, 4:14 pm, M. Edward (Ed) Borasky zn...@borasky-
research.net wrote:
 Is this true? When will we see documentation?

http://dev.twitter.com/pages/tweet_button is where it's at, in case
you hadn't already found it.


[twitter-dev] New tweet button - is t.co mandatory?

2010-08-12 Thread pthomsen
I am implementing the tweet button for our site (http://
shop.moxsie.com), and since we use bitly pro, I'd like the short urls
to use my own short domain (http://moxs.ie).

It seems, though that I'm not able to get around the t.co shortener.
If I put my shortened URL in the 'url' field, it gets shortened again
by t.co. Is that because t.co doesn't 'know' about moxs.ie? Or is
there simply no way to get around getting shortened by t.co?

If I just put my shortened URL in the text of the tweet, I get an
error page saying 'Something is technically wrong'. Not sure if that's
because I don't have a url parameter, or for some other reason

Has anyone been able to work around this?

Thanks,
Per


Re: [twitter-dev] New tweet button - is t.co mandatory?

2010-08-12 Thread Tom van der Woerdt
On 8/12/10 10:21 PM, pthomsen wrote:
 I am implementing the tweet button for our site (http://
 shop.moxsie.com), and since we use bitly pro, I'd like the short urls
 to use my own short domain (http://moxs.ie).
 
 It seems, though that I'm not able to get around the t.co shortener.
 If I put my shortened URL in the 'url' field, it gets shortened again
 by t.co. Is that because t.co doesn't 'know' about moxs.ie? Or is
 there simply no way to get around getting shortened by t.co?
 
 If I just put my shortened URL in the text of the tweet, I get an
 error page saying 'Something is technically wrong'. Not sure if that's
 because I don't have a url parameter, or for some other reason
 
 Has anyone been able to work around this?
 
 Thanks,
 Per

No, yes.

Abraham posted this sample code :
a href=http://twitter.com/share; class=twitter-share-button
data-url=http://arst.ch/xyz; data-count=vertical
data-via=abrahamTweet/a
(I think that this will post a tweet with Tweet: http://t.co/url (via
@abraham), although unsure)

No: this does post a t.co URL. Yes: it will redirect to your custom URL,
which will redirect the user to the final URL.

This allows you to track your clicks, but it will not allow you to post
custom URLs. You will have to keep using your previous Tweet Popup for that.

Tom


Re: [twitter-dev] Introducing the Tweet Button

2010-08-12 Thread M. Edward (Ed) Borasky
That brings up an interesting question. Can we access t.co analytics  
now, either (preferably) for free or by paying Twitter? If not, when,  
if ever, will we be able to access t.co analytics?

--
M. Edward (Ed) Borasky
http://borasky-research.net http://twitter.com/znmeb

A mathematician is a device for turning coffee into theorems. - Paul Erdos


Quoting Matt Harris thematthar...@twitter.com:


Hi Clint,

The Tweet Button will wrap any URL sent to it as a t.co link so although you
can use your own shortener we will still create a t.co link for it. We don't
unwrap the short URL, so any analytics you have attached to your shortener
can still happen. We also return the URL you sent us with our API responses
so clients can display your URL whilst linked to t.co first. This is made
possible by passing the flag include_entities=1 to any method that returns a
status.

You can learn more about t.co here:
  http://support.twitter.com/entries/109623

Hope that helps,
Matt


On Thu, Aug 12, 2010 at 11:30 AM, Clint Ecker clintec...@gmail.com wrote:


On Thu, Aug 12, 2010 at 10:28 AM, themattharris
thematthar...@twitter.com wrote:
 Today we’re launching the Tweet Button to make it easy for your users
 to share your website with their followers. When they click on the
 Tweet Button, a Tweet box will appear pre-populated with a message and
 link chosen by you. Once they have sent a Tweet they can choose to
 follow accounts recommended by you. All of this happens on your
 website, so the user never has to leave.

Hi Matt,

I'd really like to use this on Ars Technica, but it seems to force the
t.co shortener on us.  We have our own shorturl system (arst.ch) and I
need to use that.  Can you explain how I might go about doing
that—I've scoured the docs and have seen no mention of custom Short
URLs.

Thanks!
Clint





--


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris







Re: [twitter-dev] What is the history of Twitter's search history?

2010-08-12 Thread M. Edward (Ed) Borasky


--
M. Edward (Ed) Borasky
http://borasky-research.net http://twitter.com/znmeb

A mathematician is a device for turning coffee into theorems. - Paul Erdos


Quoting Nick Arnett nick.arn...@gmail.com:


On Thu, Aug 12, 2010 at 11:43 AM, Tom van der Woerdt i...@tvdw.eu wrote:



For the same reason it will only index interesting tweets. You wouldn't
want 40 million of this 50 million to be spam ;-)



Wow. When our computers can calculate what is interesting to us, our world
will be transformed... But I know what you meant.

I've been trying to get computers to show me interesting things for decades,
but they aren't getting much smarter about it.

Oh, for a button that says Show me only interesting stuff that works!

Nick

+1

--
M. Edward (Ed) Borasky
http://borasky-research.net http://twitter.com/znmeb

A mathematician is a device for turning coffee into theorems. - Paul Erdos




[twitter-dev] Any way to turn off 'user-scalable' meta tag in OAuth authorization form?

2010-08-12 Thread Tony.In.Portland
Is there any way to turn off the user-scalable meta tag in the page
that comes back during the oAuth authorization process? I want to
render the page in my own webview, but I want to allow the person to
zoom/pinch so they can expand the page so the input fields and buttons
are not so small. This is for a mobile device.

Thanks,
Tony


[twitter-dev] Re: Any way to turn off 'user-scalable' meta tag in OAuth authorization form?

2010-08-12 Thread Tony.In.Portland
Bad choice of words on my part. I want to be able to set the value to
yes, I want the page that comes back to be scalable.

On Aug 12, 2:09 pm, Tony.In.Portland tony.in.portl...@gmail.com
wrote:
 Is there any way to turn off the user-scalable meta tag in the page
 that comes back during the oAuth authorization process? I want to
 render the page in my own webview, but I want to allow the person to
 zoom/pinch so they can expand the page so the input fields and buttons
 are not so small. This is for a mobile device.

 Thanks,
 Tony


Re: [twitter-dev] Re: Any way to turn off 'user-scalable' meta tag in OAuth authorization form?

2010-08-12 Thread Taylor Singletary
There's no known way to do this today, Tony.

While it's obviously not a policy at Twitter, I thought I'd just take the
time to share my personal opinion on embedded web views and the OAuth flow:

- Not into it.

Why?

somewhat-related-opinion

By redirecting to a standard web browser on the device where your
application resides, your users can better understand the security scenario
being presented to them while they are approving access for your
application. Using an embedded webview subverts this trust, as you're
basically providing them with a web browser of your application's design.
Obviously, the majority of developers who implement things this way are not
doing so with ill intent, but the opportunity for funny business increases
when using a custom web view.

There are other API providers out there who forbid the use of embedded
browsers during OAuth flows for this reason.

/somewhat-related-opinion

Taylor

On Thu, Aug 12, 2010 at 2:31 PM, Tony.In.Portland 
tony.in.portl...@gmail.com wrote:

 Bad choice of words on my part. I want to be able to set the value to
 yes, I want the page that comes back to be scalable.

 On Aug 12, 2:09 pm, Tony.In.Portland tony.in.portl...@gmail.com
 wrote:
  Is there any way to turn off the user-scalable meta tag in the page
  that comes back during the oAuth authorization process? I want to
  render the page in my own webview, but I want to allow the person to
  zoom/pinch so they can expand the page so the input fields and buttons
  are not so small. This is for a mobile device.
 
  Thanks,
  Tony



Re: [twitter-dev] What is the history of Twitter's search history?

2010-08-12 Thread Nick Arnett
On Thu, Aug 12, 2010 at 12:02 PM, Tom van der Woerdt i...@tvdw.eu wrote:



 Sorry - I wanted to keep my e-mail short because I was typing from my
 bike -


Wow, you DO have advanced technology!

Nick


Re: [twitter-dev] Re: Any way to turn off 'user-scalable' meta tag in OAuth authorization form?

2010-08-12 Thread Zac Bowling
The only issue with that is that you can't return the user to the app after the 
oath flow (unless you implement a protocol handler on your platform and Twitter 
supported calling back to it).


 I'm back and forth on this myself. The security advocate in me agrees with you 
Taylor, but the UX guy in me causes me to strive to find a way to guide the 
user through the process so that my users don't have follow too many 
instructions or do to many steps get up and going. 

Zac

Sent from my iPad

On Aug 12, 2010, at 2:35 PM, Taylor Singletary taylorsinglet...@twitter.com 
wrote:

 There's no known way to do this today, Tony.
 
 While it's obviously not a policy at Twitter, I thought I'd just take the 
 time to share my personal opinion on embedded web views and the OAuth flow:
 
 - Not into it.
 
 Why?
 
 somewhat-related-opinion
 
 By redirecting to a standard web browser on the device where your application 
 resides, your users can better understand the security scenario being 
 presented to them while they are approving access for your application. Using 
 an embedded webview subverts this trust, as you're basically providing them 
 with a web browser of your application's design. Obviously, the majority of 
 developers who implement things this way are not doing so with ill intent, 
 but the opportunity for funny business increases when using a custom web 
 view. 
 
 There are other API providers out there who forbid the use of embedded 
 browsers during OAuth flows for this reason.
 
 /somewhat-related-opinion
 
 Taylor
 
 On Thu, Aug 12, 2010 at 2:31 PM, Tony.In.Portland 
 tony.in.portl...@gmail.com wrote:
 Bad choice of words on my part. I want to be able to set the value to
 yes, I want the page that comes back to be scalable.
 
 On Aug 12, 2:09 pm, Tony.In.Portland tony.in.portl...@gmail.com
 wrote:
  Is there any way to turn off the user-scalable meta tag in the page
  that comes back during the oAuth authorization process? I want to
  render the page in my own webview, but I want to allow the person to
  zoom/pinch so they can expand the page so the input fields and buttons
  are not so small. This is for a mobile device.
 
  Thanks,
  Tony
 


Re: [twitter-dev] Twitter Streaming API 401

2010-08-12 Thread John Kalucki
I can see from the logs that, on at least one occasion, your account was
logging in too often and was login rate limited. Log in once and keep the
connection open as long as possible. If you keep churning the connection,
you'll get limited, and eventually banned.

-John Kalucki
http://twitter.com/jkalucki
Twitter Inc.



On Thu, Aug 12, 2010 at 12:26 PM, benofsky b...@benmcredmond.com wrote:

 Hi,

 I'm getting a lot of 401 errors on the streaming api using the sample
 method. I am using basic authentication through the username
 clarity_li. I am backing off as suggested in the documentation, with
 an initial wait of 10 seconds, doubling each 4xx error and capping at
 240 seconds.

 I can't work out why this is happening, it usually works for a few
 minute before this happens, if I get disconnected intentionally I wait
 1 second before reconnecting, if there is a network error I follow the
 guidelines in the documentation.

 The only other reason supplied in the docs which could be causing this
 is if the client is too slow, but I am on a 100mbps university
 internet connection and take approximately 1ms to process each
 incoming tweet.

 I would be very grateful for any help.

 Regards,
 Ben



Re: [twitter-dev] Re: stream.twitter.com/1/statuses/filter

2010-08-12 Thread Matt Harris
HTTP requests use key=value pairs in the URL strings and post bodies yes. In
this case the key is follow and the value is 777925. For multiple accounts
the value would be 777925,123456.

Using curl this would be sent like this (I use -X POST here because I like
being verbose with my calls):
  curl -u username http://stream.twitter.com/1/statuses/filter.json -d
follow=777925,123456 -X POST

Hope that helps,
Matt


On Thu, Aug 12, 2010 at 1:04 PM, kme km.ens...@gmail.com wrote:

 I see, so it's not really a key/value pair then, it's the uri-encoded
 expression as a whole?

 On Aug 11, 9:47 pm, Matt Harris thematthar...@twitter.com wrote:
  Hey,
 
  To follow users you need to POST the user IDs you want to follow as a
 comma
  separated list. For example to follow @themattharris you would POST
  follow=777925
 
  If you're still having problems let us see the API request you are making
  and we'll see what's up.
 
  Matt
 
  On Wed, Aug 11, 2010 at 8:26 PM, kme km.ens...@gmail.com wrote:
   I am trying to use the streaming API to return result sets of for
   specific users. For some reason, no user is being located by the id
   specified. Is there something not documented with these calls?
 
  http://dev.twitter.com/pages/streaming_api_methods#follow
 
   any info someone has is greatly appreciated!
 
  --
 
  Matt Harris
  Developer Advocate, Twitterhttp://twitter.com/themattharris




-- 


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris


[twitter-dev] How to get a batch report of followers per username

2010-08-12 Thread mhansell
Does anyone know an app that takes a batch of twitter usernames like
via an excel or csv file and then produces the number of followers
that each user has?


Re: [twitter-dev] Re: stream.twitter.com/1/statuses/filter

2010-08-12 Thread Cameron Kaiser
 HTTP requests use key=value pairs in the URL strings and post bodies yes. In
 this case the key is follow and the value is 777925. For multiple accounts
 the value would be 777925,123456.

What is this, CompuServe?

-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- We're Starfleet officers ... weird is just part of the job. -- ST: Voyager -

No one's going to get that joke, are they?



Re: [twitter-dev] search for hashtags

2010-08-12 Thread Mark McBride
In both cases it's still probably best to use streaming.  You don't
want to connect to often, but once an hour should be totally fine.

   ---Mark

http://twitter.com/mccv



On Tue, Aug 10, 2010 at 6:34 AM, Tom van der Woerdt i...@tvdw.eu wrote:
 On 8/10/10 12:58 PM, bitstream wrote:
 Hi all,
 I've been reading api docs lately but still can't figure it out what
 will be the best approach when searching for hashtags.
 streaming
 I know that streaming api support statuses/filter where I can declare
 'track'. It's possible to use statuses/filter and add a track on
 '%23hashtag' ?

 search
 Or use a simple approach by calling search api and parse response from
 something like this: http://search.twitter.com/search.json?q=%23hashtag

 My opinion:

 It depends. If you want to track a lot of keywords, you should use
 streaming. If you track only one keyword, then both are an option,
 depending on the amount of tweets for the hashtag. If you have a lot of
 keywords but they vary (for example, when users can add/remove hashtags)
 then you should consider a combination of both, where you reset the
 stream every hour and update it with new hashtags, and use the REST API
 for the hashtags that get added in the hour. After all, you don't want
 to reconnect too often.

 Tom



[twitter-dev] Re: Twitter Streaming API 401

2010-08-12 Thread benofsky
It turns out it was an issue with yajl-ruby, the current gem has a bug
which causes random disconnects, head in git does not however. Thanks
for helping me track down the problem!

Ben

On Aug 12, 11:11 pm, John Kalucki j...@twitter.com wrote:
 I can see from the logs that, on at least one occasion, your account was
 logging in too often and was login rate limited. Log in once and keep the
 connection open as long as possible. If you keep churning the connection,
 you'll get limited, and eventually banned.

 -John Kaluckihttp://twitter.com/jkalucki
 Twitter Inc.



 On Thu, Aug 12, 2010 at 12:26 PM, benofsky b...@benmcredmond.com wrote:
  Hi,

  I'm getting a lot of 401 errors on the streaming api using the sample
  method. I am using basic authentication through the username
  clarity_li. I am backing off as suggested in the documentation, with
  an initial wait of 10 seconds, doubling each 4xx error and capping at
  240 seconds.

  I can't work out why this is happening, it usually works for a few
  minute before this happens, if I get disconnected intentionally I wait
  1 second before reconnecting, if there is a network error I follow the
  guidelines in the documentation.

  The only other reason supplied in the docs which could be causing this
  is if the client is too slow, but I am on a 100mbps university
  internet connection and take approximately 1ms to process each
  incoming tweet.

  I would be very grateful for any help.

  Regards,
  Ben


[twitter-dev] Cannot get the access token,

2010-08-12 Thread OLiE
Hey guys,
   I am trying to make an android app for twitter. The
code that i am using for the login is given below :

package com.twitter;

import org.apache.http.HttpVersion;
import org.apache.http.client.HttpClient;
import org.apache.http.conn.ClientConnectionManager;
import org.apache.http.conn.scheme.PlainSocketFactory;
import org.apache.http.conn.scheme.Scheme;
import org.apache.http.conn.scheme.SchemeRegistry;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager;
import org.apache.http.params.BasicHttpParams;
import org.apache.http.params.HttpConnectionParams;
import org.apache.http.params.HttpParams;
import org.apache.http.params.HttpProtocolParams;
import org.apache.http.protocol.HTTP;

import com.twitter.twitterEngine.TimeLine;

import oauth.signpost.OAuthProvider;
import oauth.signpost.basic.DefaultOAuthProvider;
import oauth.signpost.commonshttp.CommonsHttpOAuthConsumer;
import oauth.signpost.http.HttpParameters;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.net.Uri;
import android.os.Bundle;
import android.provider.UserDictionary.Words;
import android.util.Log;
import android.view.Gravity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

public class Twitter extends Activity implements OnClickListener{
/** Called when the activity is first created. */
private Button Login;
private SharedPreferences prefs;
private String prefFile = twitter_prefs;
private final String CALLBACKURL = myapp://mainactivity;
private CommonsHttpOAuthConsumer httpOauthConsumer;
private OAuthProvider httpOauthprovider;
public final static String consumerKey =mykey;
public final static String consumerSecret = mysecret;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
initViews();
}
public void initViews()
{
//initializing the consumer and the provider
httpOauthConsumer = new CommonsHttpOAuthConsumer(consumerKey,
consumerSecret);
httpOauthprovider = new DefaultOAuthProvider(https://
api.twitter.com/oauth/request_token,
https://api.twitter.com/oauth/access_token;,
https://api.twitter.com/oauth/authorize;);

Login=(Button)findViewById(R.login.LoginButton);
Login.setOnClickListener(this);
}

private void doOauth() {
try {

String authUrl =
httpOauthprovider.retrieveRequestToken(httpOauthConsumer,
CALLBACKURL);
this.startActivity(new Intent(Intent.ACTION_VIEW,
Uri.parse(authUrl)));
} catch (Exception e) {
Toast.makeText(this, e.getMessage(), 
Toast.LENGTH_LONG).show();
}
}
public void onClick(View arg0) {
// TODO Auto-generated method stub
doOauth();
}
@Override
protected void onNewIntent(Intent intent) {
// TODO Auto-generated method stub
super.onNewIntent(intent);
Uri uri = intent.getData();
//Check if you got NewIntent event due to Twitter Call back only
if (uri != null  uri.toString().startsWith(CALLBACKURL)) {

String verifier =
uri.getQueryParameter(oauth.signpost.OAuth.OAUTH_VERIFIER);
prefs = getSharedPreferences(prefFile, 0);
try {
// this will populate token and token_secret in 
consumer

httpOauthprovider.retrieveAccessToken(httpOauthConsumer,
verifier);
String userKey = httpOauthConsumer.getToken();
String userSecret = 
httpOauthConsumer.getConsumerSecret();

Log.d(TwitterCheckTwitterActivity,usersecret + userSecret);
Editor e = prefs.edit();
e.putString(userKey, userKey);
e.putString(userSecret, userSecret);
e.commit();
//start another activity
Log.d(TwitterCheck,Startingthenewactivity);
Intent i = new Intent(this,TimeLine.class);
startActivity(i);
}
catch(Exception e){

[twitter-dev] oauth API and application name

2010-08-12 Thread Stan Miasnikov
Hi,

I have implemented the oauth for a desktop application. The
application has been approved and I get the token back and also can
make HTTP requests using the token. However, when I post an update
using the app, it shows ...via API instead of the application name.
I thought the approved application's name suppose to appear instead. I
made sure that the post has oauth header instead of basic auth.
header. Do I need to do something else to ensure that the app name
appears instead of the API?

POST header:

Twitter request header: {
Authorization = OAuth realm=\\, oauth_consumer_key=\\,
oauth_token=\X\, oauth_signature_method=\HMAC-SHA1\,
oauth_signature=\lAx4jFI%2FeXaFv4aBxEYg2n3kkSo%3D\, oauth_timestamp=
\1281566038\, oauth_nonce=\F0999B0E-66FC-4CFE-AED7-4D87064A92A9\,
oauth_version=\1.0\;
Content-Type = application/x-www-form-urlencoded;
X-Twitter-Client = WritePad;
X-Twitter-Client-Url = http://www.phatware.com/writepad;;
X-Twitter-Client-Version = 4.1;
}

Thanks,

Stan