What is wrong with this code?


#1

Hello, Im trying to post the user’s account and I have this:

<?php require_once('twitteroauth/twitteroauth.php'); // this is TwitterOAuth library $twitter_consumer_key = AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA; $twitter_consumer_secret = BBBBBBBBBBBBBBBBBBBB; $twitter_access_token = $_GET['oauth_token']; $twitter_access_token_secret = $_GET['oauth_token_secret']; $tweet = $_GET['tweet']; // Connect to Twitter $connection = new TwitterOAuth($twitter_consumer_key, $twitter_consumer_secret, $twitter_access_token, $twitter_access_token_secret); // Post Update $content = $connection->post('statuses/update', array('status' => '$tweet')); ?>

It works, but in the twitter account it shows: “$tweet”.
need some help here. some idea? thanks :slight_smile: