Backfiring in Manifold

I drove my car over to my friends shop today to get help fixing my turn signal problem (which are fixed now) and my car started to backfire like crazy. For the first 10 minutes everything was fine and then I jumped on it get around a truck to make a right. As soon as I shifted from first to second it started backfiring really bad and I had to pull over twice before I got to the shop because I didn't think I was going to make it. I'm assuming that it's due to a lean condition, so what should I do to try to fix it?

First thing I'll do is blow smoke into the brake booster vac line and see if I have a leak. But besides a vac leak what else could cause the backfiring? Thanks in advance.
 
oh man, this happened to a co-workers 5.0 like a year ago. I think it was his MAF. I thought long and hard about it (bevis and butthead laugh) anyways, I thought EGR is open all the way and shooting into the manifold, thought his timing was waaaay off like 180, but then it would never run. or a bad exhaust valve so when the intake valve opened, there'd be hot exhaust which would light up the new charge, etc. but I think it was his MAF.

I dunno, good luck though.
 
Problem solved. I disconnected the o2 sensors and now the car drives fiine. On Monday I'll plug them back in and if the car backfires like crazy again then the o2 sensors are definitely the problem. Just thought I'd post what I learned so if anyone else has this problem.