locked
Help on Twitter API RRS feed

  • Question

  • User-284461741 posted

    Hi,

    I have incorporated the Twitterizer.Framework dll in my website to display my recent tweets.Everything is working fine but when the Twitter site is down my website is also down as I have tweets on my home page. Do we have any kind of error handling mechanisms to overcome this problem...Plz help

    Thursday, May 6, 2010 3:56 AM

All replies

  • User197322208 posted

    .Everything is working fine but when the Twitter site is down my website is also down as I have tweets on my home page

    That's normal. Cache our data in a database/file on disk and,

    var ItemsToDisplay=null;

    try{

    itemsToDisplay = //retrieve from twitter


    //put in cache  itemsToDisplay - database , file on disk, cache for application, etc


    }

    catch(TwitterIsDownException ex)

    {

    //log exception

    itemsToDisplay = //retrieve last cached items

    }
    Display on home page(itemstodisplay)

    Thursday, May 6, 2010 1:56 PM