javascript - Trying to display latest Tweet -


i've been using few tutorials me display latest tweet, haven't had success since stopped working week ago.

this js:

<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script> <script type="text/javascript" src="http://twitter.com/statuses/user_timeline/username.json?callback=twittercallback2&count=1"></script> 

and html:

<div id="twitter_div"><ul id="twitter_update_list"><li>&nbsp;</li></ul></div> 

but comes empty in js fiddle.

http://jsfiddle.net/bvdvh/149/

i have no idea why, working before , stopped working on website week ago.

edit:

answer in comments. not seeing last tweet because re-tweet. had set true.

you missing script handles data loaded twitter. twitter api expects callback of twittercallback.

edit: didnt realize blogger.js provided callback. answer fiddle in comments


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -