Im not that much into programation but I’ve been trying to edit a base code one with another ones to display more than 1 tweet but it dosen’t work, could anyone help me?
$.getJSON("http://twitter.com/status/user_timeline/user.json?count=3&callback=?",
function(data) {
$("#tweet").html(data[0].text);
});
Thanks!
datais an array. Sodata[0]accesses the first tweet returned from twitter.You need to iterate over the array and append the other tweets to your div.
Edit: Changed selector to target
#twitterdiv and add atweetclass to each tweet.