Ver Mensaje Individual
  #3 (permalink)  
Antiguo 09/04/2013, 14:31
DeivyPereira
 
Fecha de Ingreso: marzo-2013
Mensajes: 10
Antigüedad: 11 años, 1 mes
Puntos: 0
Información Respuesta: PHP Tweets Automatico Varias Cuentas

Lo hago con este codigo:

Código:
<?php
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$consumerKey    = 'XXXXXXX';
$consumerSecret = 'XXXXXX';
$oAuthToken     = 'XX-XXX';
$oAuthSecret    = 'XXXXX';

// incluimos la librería para usar la API OAuth
require_once('twitteroauth-master/twitteroauth/twitteroauth.php');
$tweet = new TwitterOAuth($consumerKey, $consumerSecret, $oAuthToken, $oAuthSecret);


$tweet->post('statuses/update', array('status' => $_POST['title']." "."http://www.MiPagina.com/detalle_noticia.php?id_new=".$ultimo_id));
//echo $i++;
//}
}
?>

Pero solo lo publica en un solo twitter si no me equivoco esa libreria de twitter es la de Abraham