since upstate ny was admitted to the usa, i would think you will do all customs and tsa stuff in buffalo, which is much better than doing it at iad. your luggage transfers on. to find gates, go to iad arrivals and departures for today or tomorrow. you will probably have to transfer concourses at iad.
fra is a hell hole. transfers can be very ugly.