OAKLAND, Calif. — Nick Foles didn’t know he had etched his name in NFL history until after he came out of the game. That must have been because he was too busy shredding the Oakland Raiders’ defense to keep up with his impressive statistics.
Foles tied an NFL mark with seven touchdown passes and threw for 406 yards to revitalize Philadelphia’s struggling offense in the Eagles’ 49-20 victory over the Raiders on Sunday.
‘‘A couple people came up to me and said that I tied the record with seven touchdowns,’’ Foles said. ‘‘It’s a great honor. Hats off to our guys for doing a great job.’’
The backup quarterback connected three times with Riley Cooper to become the seventh passer in NFL history with seven TD tosses in a game. Peyton Manning did it for Denver on opening night this season against Baltimore.
Foles also threw scoring passes to Brent Celek, Zach Ertz, LeSean McCoy, and DeSean Jackson as the Eagles (4-5) looked nothing like the offense that failed to score a touchdown in each of the past two weeks.
‘‘Every defense the past couple of weeks has been stopping us,’’ McCoy said. ‘‘So today we were kind of feeling bottled up and we released everything. It’s tough when you’re not winning and you’re not putting points up.’’
The Raiders (3-5) had appeared much improved on defense in recent weeks but were completely flummoxed by coach Chip Kelly’s spread offense that stalled recently after a fast debut in the NFL.
Foles completed 22 of 28 passes as he frequently exploited mismatches, starting with a 42-yard pass to Cooper on the opening drive when the Raiders had two defenders trying to match up with three receivers.
McCoy took a short pass and ran 25 yards for his score in the third quarter and Jackson raced past Mike Jenkins on his 46-yard TD later in the third.
Foles then tied the record with a 5-yard pass to Cooper with 4:28 remaining in the third quarter. With more than a quarter to go to break the record, Foles failed to get the Eagles back into the end zone on the next two drives before being replaced by Matt Barkley.
‘‘I know what the record is,’’ Kelly said. ‘‘But this isn’t about records, it’s about getting a win. If I put Nick out there to try to get a record and he gets hurt, that’s being silly.’’
That was about all Foles couldn’t do in his first game since being held to 80 yards on 29 passes before leaving with a concussion two weeks ago against Dallas.
Foles only got another shot this week because Michael Vick reinjured his hamstring in a loss to the Giants last week. But now, it will be tough to take out Foles, who has 13 TD passes and no picks this season.
Foles repeatedly targeted rookie cornerback D.J. Hayden as he led the Eagles to touchdowns on their first four drives for the first time in three years. Hayden was beaten on successive plays by Cooper for a 17-yard completion and 63-yard TD early in the second quarter.
‘‘When a quarterback has seven touchdowns, we have to sit there and take that personal,’’ cornerback Tracy Porter said. ‘‘It was flat-out embarrassing.’’