Programming

  • 5 {{ upvoteCount | shortNum }}

    Text gets auto Tweeted while Media (image) does not

    ahojvole in Programming

    Hello could someone please help me implement Twitter status updates. I am using this ridiculously simple script to auto Tweet on behalf of a user. PHP Code: $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);  Upon executing ... [read more]