Added Foursquare error handling to sample app