Text gets auto Tweeted while Media (image) does not
I am using this ridiculously simple script to auto Tweet on behalf of a user.
$image = 'test.jpg';
// Insert your keys/tokens
$consumerKey = 'xxx';
$consumerSecret = 'xxx';
$OAuthToken = 'xxx';
$OAuthSecret = 'xxx';
// Full path to twitterOAuth.php (change OAuth to your own path)
require_once('connect/twitter/twitteroauth.php');
$params = array(
'status' => $_REQUEST['content'],
'media[]' => '@{$image}'
);
// create new instance
$tweet = new TwitterOAuth($consumerKey, $consumerSecret, $OAuthToken, $OAuthSecret);
// Send tweet
$tweet->post('statuses/update', $params);
Why isnt this posting the image while its posting the text to twitter?
Please help I have been struggling with this for days now.
:)
**Keep Hackers Away** 176+ Rock Solid Security for Wordpress