Just making sure... when you clean the MAF you have to take it off the air intake tubing completely to get to the little passage ways where the wires are that need to be cleaned.
Here's a link that will help explain things better.
http://www.toyota-4runner.org/3rd-ge...elp-p0171.html
If you have cleaned the MAF properly and the code still pops up and there are no vacuum leaks (I'm assuming you disconnected the battery to clear codes after cleaning the MAF right?) it would seem to be the O2 sensor is next on the list. It will be the pre cat sensor and you can normally find good deals on them on Amazon.
Here's some sites to help you find the right sensor part number for your truck. Only use Denso!
http://www.urdusa.com/More-Products-...3k5tthki7atl17
http://www.densoaftermarket.com/oxygen-sensor.php