Posting links to twitter

Hi Guys!

Does anyone know how using the Twitter API to post a status update along with a link?

I am using the following class/code (i’ve tried emailing the author, but no response):

/* Twitter Plugin */
$tmhOAuth = new tmhOAuth(array(
	'consumer_key'    => 'secret',
 	'consumer_secret' => 'secret',
  	'user_token'      => 'secret',
  	'user_secret'     => 'secret'));
$twitter_content = $_POST['job_title'].' - '.strip_tags($_POST['job_description']).' '.SITEURL.'/'.$this->settings['company_directory'].'/'.$jobinfo['company_url'].'/'.$jobinfo['job_url'];
$code = $tmhOAuth->request('POST', $tmhOAuth->url('1/statuses/update'), array('status' => $twitter_content, 'wrap_links' => 'true'));
if($code == 200) {
} else {

Please help, im at a dead end.

Thanks in advance.

Isn’t it just a case of sending the URL in the text? And Twitter will automatically make it clickable?

Or am I missing something?

Hmmm that’s what I thought, but it doesn’t seem to be the case - weird.

Just a guess, but did you try setting $twitter_content with some concrete text values, less than 140 chars? Maybe it is twitter clients that enforce the 140 limit proir to sending the request off?

It must just be the URL i’m using as it’s an IP address…also, do you know how to post bit links like they have here:!/simplysalesjobs

I’m sorry, I have no experience of this API and cannot think of anything else to suggest.

Apart from as I said, send in some concrete values and then keep adding complexity (url, shortened url and so on) until you discover the reason for the failure.