Scott Hairston hit a game-tying two-run home run off Sergio Romo, then a go-ahead solo shot off Santiago Casilla in the 10th inning to spoil the Giants' ninth-inning rally and give the Mets an 8-7 win.