wicked wp poster dont post the post content to twitter
-
Hello plaese i was try more plugins to post the post content to twitter but i dont found any plugin can send the post content specialist from api for that i want any one to help me by say to me how to make wickedwpposter plugin to send post conent to twitter not post title i think the develop will be in this code
What the function can i change to make this plugin send post content not post title ?function socialize($post_ID) { global $twitter_username, $twitter_password, $tumblr_email, $tumblr_password, $delicious_username, $delicious_password, $diigo_username, $diigo_password, $tags; $post_title = stripslashes($_POST['post_title']); $post_title = html_entity_decode($post_title); $tumblr_text = html_entity_decode($_POST[content]); $tumblr_text = strip_tags($tumblr_text); $tumblr_text = nl2br($tumblr_text); $tumblr_text = substr($tumblr_text, 0,200); $permalink = get_permalink($post_ID); $tumblr_text .= "<br />Read more at the source: <a target=_blank href=$permalink>$post_title</a>"; $tw_title = substr($post_title, 0,70); // Send to Twitter if($twitter_username && $twitter_password){ $message = "$tw_title $permalink"; // The twitter API address $url = 'https://twitter.com/statuses/update.xml'; // Alternative JSON version // $url = 'https://twitter.com/statuses/update.json'; // Set up and execute the curl process $curl_handle = curl_init(); curl_setopt($curl_handle, CURLOPT_URL, "$url"); curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2); curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl_handle, CURLOPT_POST, 1); curl_setopt($curl_handle, CURLOPT_POSTFIELDS, "status=$message"); curl_setopt($curl_handle, CURLOPT_USERPWD, "$twitter_username:$twitter_password"); $buffer = curl_exec($curl_handle); curl_close($curl_handle);
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘wicked wp poster dont post the post content to twitter’ is closed to new replies.