WordPress.org

Forums

Twitter feed Stopped working (3 posts)

  1. jon015
    Member
    Posted 2 years ago #

    Hi, Wondering if someone could be so kind to help me, someone else created a custom javascript titter feed in my header for me and it has stopped working and that person is no longer around, so I need to fix it myself. The website is rideslovenia.com, here is the code, anyone see anything wrong? Thanks!

    <script src="http://code.jquery.com/jquery-latest.js"></script>
    <script src="/wp-content/themes/headway/library/media/js/jquery.timeago.js"></script>
    <script>
    $.getJSON("http://twitter.com/statuses/user_timeline/rideslovenia.json?callback=?", function(data) {
    $("#twitter").html(""+data[0].text + "
    <span class='time'> " + $.timeago(data[0].created_at)+"</span>
    ");
    });
    </script>
    <div id="twitter"></div>

  2. bythegram
    Member
    Posted 2 years ago #

    change the JSON url to this

    http://api.twitter.com/1/statuses/user_timeline.json?screen_name=rideslovenia&callback=?

    *note: Twitter has changed their API and even this fix is only temporary, I believe it will work until March 2013.

  3. jon015
    Member
    Posted 2 years ago #

    Thank you so much! That worked nicely.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.