Costa Rassco
Costa Rassco

Reputation: 169

how to post on the user's twitter wall via my app?

I have a code, where people can post messages on the app's wall via my app

         $consumerKey = '';
    $consumerSecret = '';
    $accessToken = '';
    $accessTokenSecret = '';

    $tweet = new TwitterOAuth($consumerKey, $consumerSecret, $accessToken, $accessTokenSecret);

    $tweetMessage = $_POST['message'];

   if(strlen($tweetMessage)<=140)
   {
       $tweet->post('statuses/update', array('status' => $tweetMessage));

       $day = date('Y-m-d H:i:s');

      mysql_query("INSERT INTO users (message,data,social) VALUES ('".$_POST['message']."','".$day."','tw')");
   }

how can I make the script to post messages from users on their own walls via my app ?

is it possible?

thank you!

Upvotes: 0

Views: 734

Answers (1)

user149341
user149341

Reputation:

Actually, now that I think of it, what you probably want here is not a Twitter application at all. Since you want your visitors to post messages themselves, the correct way to do this is by using Twitter Web Intents.

Upvotes: 1

Related Questions