here is my workaround to get shorten url and implement in sociable plugin:
step 1: add following lines in functions.php
// Ondemand function to generate tinyurl
function getTinyUrl($url) {
$tinyurl = file_get_contents(“http://tinyurl.com/api-create.php?url=”.$url);
return $tinyurl;
}
step 2: open sociable.php
– in block “// Load the post’s data” I added line
$turl = getTinyUrl(get_permalink($post->ID));
– then few lines below, just below “$url = str_replace(‘EXCERPT’, $excerpt, $url);” I added following line
$url = str_replace(‘TINY’, $turl, $url);
– and at the end in block “$sociable_known_sites = Array(” I found and change ‘TwittThis’ to following
‘TwitThis’ => Array(
‘favicon’ => ‘twitter.png’,
‘url’ => ‘http://twitter.com/home?status=TINY’,
),
Works for me 🙂