SAN JOSE -- Jeff Carter scored at 1:31 of overtime to give the Los Angeles Kings a 3-2 win against the San Jose Sharks at SAP Center on Friday.

Martin Frk scored two goals in the third period in his debut for the Kings (16-20-4), who ended a three-game winless streak (0-2-1). Jack Campbell made 22 saves.

"I got lucky," Frk said. "I was twice in a good spot and it went in so I'm really happy for that. [I] couldn't ask for anything better."

[WATCH: All Kings vs. Sharks highlights]

Kings coach Todd McLellan said: "Nice to see Marty Frk come up and contribute and use his tools. That shot that he has, and the ability to find ice was real important. And a good, aggressive play in overtime got us the win."

Joe Thornton had a goal and an assist, Patrick Marleau had two assists, and Aaron Dell made 35 saves for the Sharks (16-20-3), who are 0-3-1 in the past four games.

"We're still searching for that bounce," Sharks coach Bob Boughner said. "[Brent Burns] hits the crossbar there [in overtime], we had a chance to win the game. It's that fine line. They come down and bury their chance."

Video: LAK@SJS: Frk ties the game with second goal

Frk, recalled from Ontario of the American Hockey League on Friday, cut the lead to 2-1 1:30, and tied it 2-2 with 1:24 remaining. Carter and Nikolai Prokhorkin had an assist on each goal.

"I was just trying to hang out in that right spot, right in that slot area and they found me twice," Frk said. "I'm glad I helped the team to get the two points tonight."

Erik Karlsson gave the Sharks a 1-0 lead at 6:16 of the second period with a wrist shot from the right point through a Marleau screen.

"It's good any time you can contribute and get the team on the board," Marleau said.

Thornton had an assist, his 1,078th in the NHL to move within one of Adam Oates for seventh place on the NHL all-time list.

Video: LAK@SJS: Thornton notches first goal of the season

Thornton made it 2-0 at 11:39 with his first goal in 48 games, since March 18 against the Vegas Golden Knights.

"We have to have a playoff mentality," Marleau said. "We're on the outside looking in, and we've got to win games. We need a short memory and get ready for tomorrow night's game (against the Philadelphia Flyers)."

They said it

"That's a tough building to play in and a tough team to play against. The boys just played great in front of me all night. We definitely deserved the two points." -- Kings goalie Jack Campbell

Video: EA Sports Overtime Winner: Carter wins it for Kings

"We have a good group of guys in here. We have a good hockey team. We should be a good hockey team. We're not a good hockey team right now." -- Sharks defenseman Erik Karlsson

Need to know

Kings forward Dustin Brown is ill and did not travel for the two-game road trip. … Kings forward Alex Iafallo has one goal and two assists in a three-game point streak. … Marleau is tied with Sergei Fedorov for 51st on the NHL's all-time points list with 1,179. … Sharks defenseman Radim Simek had an assist in 14:01 in his return after missing seven games with a lower-body injury. … Sharks defenseman Mario Ferraro played 14:50 in his return after missing three games with an upper-body injury. … Sharks forward Tomas Hertl had his six-game point streak end. He had four goals and three assists in the run.

What's next

Kings: At the Vancouver Canucks on Saturday (10 p.m. ET; CBC, SN, SN360, SN1, CITY, FS-W, NHL.TV)

Sharks: Host the Philadelphia Flyers on Saturday (10:30 p.m. ET; NBCSCA, NBCSP+, NHL.TV)

Video: Frk, Carter help Kings rally to beat Sharks in OT