It started when I got my oil changed and they replaced my air filter. About I week later I drove to work and it ran fine when I started my truck after work it stalled and would not idle . I opened the hood and found the intake was off the throttle body so I put it back on and it didn't fix the issue. So I looked up possible issues to cause it to throw those codes and at the top of the list was mass air flow sensor. That did not work and the next was a possible PCM update that's when I took it to the dealership and they diagnosed it with 3 bad O2 sensors and one lazy one and wanted to charge 1600 . So I ordered the parts my self and changed them out in about an hour and saved my self a 1600 charge but unfortunately am no closer to a fix
The air intake tube coming off would point me in that direction. If everything is running fine, and than suddenly you have issues that start right when the intake tube comes odd, I would concentrate on that area. Anything else, like the O2 sensors, going bad at that exact moment would be a huge coincidence.....and as said above what are the chances that all 4 O2 sensors went bad at the same time....
Back to the intake tube, MAF, and throttle body area. I would take a close look around the area to see if anything was damaged in that area when it came loose. Are there any wires, connectors, or hose in that general area that may have gotten pulled out or loosened, either when the tube came off or happened accidentally when you put it back on? The MAF is on the air box housing and I could see wiring getting damaged. Maybe just leaning up into the engine compartment when putting the parts back on snagged something?
Back to the codes and ones that point at sensors. Keep in mind that codes do not specifically say the sensor itself is bad. Rather is says the signal from that circuit is bad, which means it could just be a bad wire or connector and the sensor itself is fine. In my experience of working on cars over the years I would say at least half the time you get a code related to the signal coming from a sensor, it's not the sensor itself but rather something to do with the circuit. I've personally seen a guy replace an O2 sensor 3 times and still get a code. I'm by no means a mechanical genius, but it took my about 2 minutes to find one of the wires going from the O2 sensor up to the engine bay was frayed.