Show the number of twitter in the article

likes
web
tweetbutton

#1

Hello
can you help me!
there is a function to show how many times the article was tweeted?

thank you
Silvia

Guarda l’articolo a questo link

foto in allegato

Italiano
Ciao
potete aiutarmi!
esiste una funzione per mostrare quante volte è stato twittato l’articolo?

Guarda l’articolo a questo link
foto in allegato

grazie
Silvia


#2

No, that is not available in the Twitter web widgets.


#3

example function

function getTweets($___url_T){
    $json = file_get_contents( "http://urls.api.twitter.com/1/urls/count.json?url=".$___url_T );
    $ajsn = json_decode($json, true);
    $cont = $ajsn['count'];
    return $cont;
}

#4

The URL you have in that function does not exist. This was never a documented or supported part of the public Twitter API. There is no function to get a share count in the public API.


#5