tags:

views:

27

answers:

1

Hi, I am working on an application in which user can update his/her twitter status from my application. I am using oauth for letting the user authorize my app to update his/her status. I am able to verify the credentials, receive the oauth_token and oauth_token_secret. Also I am able to get the user's information. But I am unable to update the status even when I have selected read/write access while registering my application . Below is the code snippet from the callback URL where I am reading the user's data and trying to update his status.

$to = new EpiTwitter($consumer_key, $consumer_secret); $to->setToken($token->oauth_token, $token->oauth_token_secret); //I can read these values properly $to->post_statusesUpdate(array('status' => 'hello'));

Also I do not see any errors when i run this script. I am using a hostgator webserver to host it.

Please let me know where I am going wrong. Few more questions: 1. How do I access the xmls to check the results? 2. Can the same oauth_token and oauth_token_secret be used at a later time to update the user's status ?

Thanks in advance, Vineet

A: 

Yes vineet you can use the same oauth_token and oauth_token_secret later, check some twitter API stuffs here - http://motyar.blogspot.com/search/label/Twitter

Motyar