1) Ho questo codice che cerca i tweet contenenti la parola amore e (DOVREBBE) risponde all'autore con un "ti amo".
Il problema è che invece di RISPONDERE al tweet, viene solamente menzionato l'utente.
Come faccio per fare in modo che venga creata una risposta al tweet?
2) Voglio effettuare la ricerca in base al geocode italiano (http://search.twitter.com/search.rss...code:41,12,5km)
solo che non capisco come inserirla nell'array visto che ci sono le virgole che mi danno errore.
Come faccio a inserire il geocode correttamente?
3) come faccio a fare eseguire questo codice automaticamente ogni tot ore?
Grazie
codice:... $twitter->host = "http://search.twitter.com/"; $search = $twitter->get('search', array('q' => 'amore', 'rpp' => 5)); $twitter->host = "https://api.twitter.com/1/"; foreach($search->results as $tweet) { $status = '@'.$tweet->from_user. ' ti amo!'; if(strlen($status) > 140) $status = substr($status, 0, 139); $twitter->post('statuses/update', array('status' => $status)); echo $status;?> <?php }