How do I automate Twitter posts?

Sente

Junior Member
Joined
Sep 21, 2009
Messages
193
Reaction score
19
Is there a way to load 100 tweets into something and have them post every X days or Y hours? That way I can do it once a week, not every time!
 
Or if you want something desktop based PM me as i've got my own custom programmed software.
 
Wow. HOOTSUITE rocks! Very powerful!

I stumbled across socialoomph earlier and it looks likes HS puts it to shame. THANKS!
 
Code:
<?php
// Set username and password
$username = 'AccountName';
$password = 'Password';
// The message you want to send

srand ((double) microtime() * 10000000); 
$input = array ("Say Stuff Here Replace in similar format with quotes and a comma", "like this");  

$num = array_rand($input); 
$message = $input[$num];

// $message = 'still writing new blog posts';
// The twitter API address
$url = 'http://twitter.com/statuses/update.xml';
// Alternative JSON version
// $url = 'http://twitter.com/statuses/update.json';
// Set up and execute the curl process
$curl_handle = curl_init();
curl_setopt($curl_handle, CURLOPT_URL, "$url");
curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl_handle, CURLOPT_POST, 1);
curl_setopt($curl_handle, CURLOPT_POSTFIELDS, "status=$message");
curl_setopt($curl_handle, CURLOPT_USERPWD, "$username:$password");
$buffer = curl_exec($curl_handle);
curl_close($curl_handle);
// check for success or failure
if (empty($buffer)) {
    echo 'message';
} else {
    echo 'success';
}
?>

Upload to your server make multiple copies put them on multiple servers bla bla, make sure its a .php file then set up a cron job to execute as often as you want.

I like doing this with go daddy free domains 10 accounts per free domain hosting server, so you dont have 100 accounts pumping out cpa links from one server ip.

hope it helps, has been shared here before. ^ my little spin
 
I was actually thinking about writing something like this. But I'll check out hoot first I think...
 
Does this work anymore? Twitter changed there authentication APIs from 30th June. I too need some kind of script to automatically update statuses :(
 
The API still works fine, all my accounts are posting properly.
 
Can Hootsuite set automated tweets every X minutes without simply putting each individual tweet in each day? Like upload 100 tweets have them repeat as long as you want? If so, I am unsure where this option is.
 
socialoomph dot com is good alternative
or twitt er attack in sell section
 
Last edited:
Back
Top