javascript - Display user profile image with Twitter API - jQuery -
i using twitter api jquery display twitter stream on website. display profile image, tweet text , time. have working except image. here script:
jquery.getjson('https://api.twitter.com/1/statuses/user_timeline/twitterapi.json?count=3&include_entities=true&include_rts=1&callback=?', function(data){ jquery.each(data, function(index, item){ jquery('.twitter').append('<div class="tweet"><p>' + item.text.linkify() + '</p><p><strong>' + relative_time(item.created_at) + '</strong></p></div>'); }); }); i tried add item.profile_image_url nothing shows up.
profile_image_url variable in user variable
item.user.profile_image_url
Comments
Post a Comment