Sorry I don't know answer on your question but in general would be nice to have more informative error messages from Twitter
I'm tired of Failed to validate oauth signature and token, if there is a problem with timestamp just let me know! It will also reduce amount of messages in this group On Sep 19, 11:39 am, bill <ramesh.billap...@gmail.com> wrote: > Hi, > > I am trying a do twitter authentication using oAuth. I am getting > error in first step itself (i.e while getting RequestToken itself). I > am trying this from a php page running on my machin (twitter > application registered as desktop application). I am new to php > development, any inputs are appreciated. Below are Request and > Response > > Thanks, > Ramesh > > -------------- > request > -------------- > > HTTP_OAuth_Consumer_Request Object ( [authType:protected] => 1 > [secrets:protected] => Array ( [0] => > Cxnk2e8Kbz8CLskAwzl7BBlCvkjPptSHcEIzXXvUAE [1] => ) > [request:protected] => HTTP_Request2 Object ( [observers:protected] => > Array ( ) [url:protected] => Net_URL2 Object > ( [_options:Net_URL2:private] => Array ( [strict] => 1 [use_brackets] > => 1 [encode_keys] => 1 [input_separator] => & [output_separator] => > & ) [_scheme:Net_URL2:private] => http [_userinfo:Net_URL2:private] => > [_host:Net_URL2:private] => twitter.com [_port:Net_URL2:private] => > [_path:Net_URL2:private] => /oauth/request_token > [_query:Net_URL2:private] => [_fragment:Net_URL2:private] => ) > [method:protected] => POST [auth:protected] => [headers:protected] => > Array ( [user-agent] => HTTP_Request2/0.5.2 (http://pear.php.net/ > package/http_request2) PHP/5.3.1 [authorization] => OAuth > realm="http://twitter.com/", > oauth_consumer_key="*********************", > oauth_nonce="*************************", > oauth_signature="*****************", oauth_signature_method="HMAC- > SHA1", oauth_timestamp="1284910240", oauth_version="1.0" ) > [config:protected] => Array ( [adapter] => > HTTP_Request2_Adapter_Socket [connect_timeout] => 10 [timeout] => 0 > [use_brackets] => 1 [protocol_version] => 1.1 [buffer_size] => 16384 > [store_body] => 1 [proxy_host] => [proxy_port] => [proxy_user] => > [proxy_password] => [proxy_auth_scheme] => basic [ssl_verify_peer] => > 1 [ssl_verify_host] => 1 [ssl_cafile] => [ssl_capath] => > [ssl_local_cert] => [ssl_passphrase] => [digest_compat_ie] => > [follow_redirects] => [max_redirects] => 5 [strict_redirects] => ) > [lastEvent:protected] => Array ( [name] => disconnect [data] => ) > [body:protected] => [postParams:protected] => Array ( ) > [uploads:protected] => Array ( ) [adapter:protected] => > HTTP_Request2_Adapter_Socket Object ( [serverChallenge:protected] => > [proxyChallenge:protected] => [deadline:protected] => > [chunkLength:protected] => 0 [redirectCountdown:protected] => > [contentLength:protected] => 0 [socket:protected] => ) ) > [parameters:protected] => Array ( [oauth_callback] => > [oauth_consumer_key] => ********************* [oauth_signature_method] > => HMAC-SHA1 [oauth_timestamp] => 1284910240 [oauth_nonce] => > ********************* [oauth_version] => 1.0 [oauth_signature] => > ************************= ) ) > -------------- > response > -------------- > > HTTP_OAuth_Consumer_Response Object ( [response:protected] => > HTTP_Request2_Response Object ( [version:protected] => 1.1 > [code:protected] => 401 [reasonPhrase:protected] => Unauthorized > [headers:protected] => Array ( [date] => Sun, 19 Sep 2010 15:30:41 GMT > [server] => hi [status] => 401 Unauthorized [x-transaction] => > 1284910241-69054-62865 [last-modified] => Sun, 19 Sep 2010 15:30:41 > GMT [x-runtime] => 0.01374 [content-type] => text/html; charset=utf-8 > [pragma] => no-cache [x-revision] => DEV [expires] => Tue, 31 Mar 1981 > 05:00:00 GMT [cache-control] => no-cache, no-store, must-revalidate, > pre-check=0, post-check=0 [x-xss-protection] => 1; mode=block [x-frame- > options] => SAMEORIGIN [vary] => Accept-Encoding [content-encoding] => > gzip [content-length] => 62 [connection] => close ) > [cookies:protected] => Array ( [0] => Array ( [expires] => Sun, 26- > Sep-10 15:30:41 GMT [domain] => .twitter.com [path] => / [secure] => > [name] => k [value] => 98.180.203.164.1284910241513942 ) [1] => Array > ( [expires] => Tue, 19 Oct 2010 15:30:41 GMT [domain] => [path] => / > [secure] => [name] => guest_id [value] => 128491024151857994 ) [2] => > Array ( [expires] => [domain] => .twitter.com [path] => / [secure] => > [name] => _twitter_sess [value] => > ******************************************d2f0b79c14dec4c9fe0ac026395fd6afc > 68a3c75 ) ) > [lastHeader:protected] => connection [body:protected] => > ‹ sKÌÌIMQ(ÉW(KÌÉLI,IUÈO,-ÉP(ÎLÏK,)-JUHÌ Ég§æ šÎë, > [bodyEncoded:protected] => 1 ) [parameters:protected] => Array ( ) ) > ERROR: Failed getting token and token secret from response -- 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?hl=en