direct-message using TwitterOauth
I am using following method but its not working.
$twitteroauth->post('direct_messages/new', array(
'text' => 'dm text here',
'scre开发者_如何学Cen_name' => 'recipients screen_name',
));
$twitter = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET,
$access_token['oauth_token'], $access_token['oauth_token_secret']);
// $message must have the @name of the user who created the message
// referenced in the 'in_reply_to_status_id' field
$tweet = array('status' => $message,
'in_reply_to_status_id' =>$tweetback['tw_topicid']);
// post the tweet
$response = $twitter->post('statuses/update', $tweet);
精彩评论