Hi Taylor… thanks for your help…
I’m using symfony and a plugin that allows me to get connected to twitter api (sfMelody) in my localhost, the log for the request looks like this:
Oct 18 14:32:29 symfony [info] {OAuth} call https://api.twitter.com/oauth/request_token with params oauth_callback=https%3A%2F%2Flocalhost%2Findex.php%2Faccess%2Ftwitter&oauth_consumer_key=fYUddJniczrFF3nXeLj4Ig&oauth_nonce=7dbf0ca059d64b9ed1278244554b6cf6&oauth_signature=bwOAka9KA%2FbOeuslCg0qd%2B2ZZIQ%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1318966349&oauth_version=1.0 |
Oct 18 14:32:30 symfony [info] {OAuth} twitter return Array
(
[oauth_token] => RBmkDhTNSnb4rceKnIYdZvOBH3zy5KmccJvmTRQRKA
[oauth_token_secret] => xxxxx
[oauth_callback_confirmed] => true
)
Oct 18 14:32:30 symfony [info] {Doctrine_Connection_Statement} execute : DELETE FROM token WHERE (status = ? AND name = ? AND user_id = ?) - (request, twitter, 1)
Oct 18 14:32:30 symfony [info] {OAuth} “twitter” call url “https://api.twitter.com/oauth/authorize” with params "array (
‘oauth_token’ => ‘xxxx’,
)"
Oct 18 14:32:30 symfony [info] {sfFrontWebController} Redirect to “https://api.twitter.com/oauth/authorize?oauth_token=RBmkDhTNSnb4rceKnIYdZvOBH3zy5KmccJvmTRQRKA”
The same code and the same application running in ec2 server give me a log like this:
Oct 18 14:26:30 symfony [info] {OAuth} call https://api.twitter.com/oauth/request_token with params oauth_callback=http%3A%2F%2Fec2-174-129-169-151.compute-1.amazonaws
.com%2Findex.php%2Faccess%2Ftwitter&oauth_consumer_key=fYUddJniczrFF3nXeLj4Ig&oauth_nonce=f1997fa8383d1ec4e0691c68d52e1250&oauth_signature=HeU3PXPo4rozpgXhJDvFqLueLsk%
3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1318947990&oauth_version=1.0 |
Oct 18 14:26:30 symfony [err] {OAuth} access token failed - twitter returns Array
(
[Failed to validate oauth signature and token] =>
)
Oct 18 14:26:30 symfony [info] {Doctrine_Connection_Statement} execute : DELETE FROM token WHERE (status = ? AND name = ? AND user_id = ?) - (request, twitter, 1)
Oct 18 14:26:30 symfony [info] {OAuth} “twitter” call url “https://api.twitter.com/oauth/authorize” with params "array (
‘oauth_token’ => NULL,
)"
Oct 18 14:26:30 symfony [info] {sfFrontWebController} Redirect to "https://api.twitter.com/oauth/authorize?"
It looks like the api twitter doesn’t give me a response because I’m using an ec2 server or something like that…
Again: Thanks in advance for your help…