Edit my message before posting in Twitter with Twitter API and PHP
I am having a site and I want to add a button in my site that will link to the twitter login page and after login it will post a message to the Twitter home page of the user.
I used this code:
http://www.matpal.com/2010/12/oauth-access-token-in-twitter-api.html
and it works fine. My problem is that before posting the message I want to be able to edit it.
So after login I want to see my message in an editing input (like retween do,here: http://www.mobilemarketer.com/cms/news/search开发者_如何转开发/10263.html ) and post it after clicking Tweet.
Does anyone know how can I do this?
Thanks in advance
You will want to create a HTML form that submits a POST request back to a PHP file on your site. In that page you will extract the $_POST variable, validate it, then use it to post a new status like $connection->post('statues/update', array('status' => $newStatusTextFromPost));
精彩评论