San Francisco Supervisor Scott Wiener scored a big endorsement Thursday, and a nice photo opp, when Attorney General Kamala Harris paid a visit to announce her support for his state Senate candidacy.

Wiener is locked in a tight battle with fellow Supervisor Jane Kim in the 11th District, which encompasses all of San Francisco and a chunk of northern San Mateo County, including Daly City, Colma and part of South San Francisco.

On her 52nd birthday, Harris, the favorite to win the November run-off to replace outgoing Sen. Barbara Boxer, brought her star power to Noe Valley, where she and Wiener strolled and schmoozed with merchants and voters.

Kim took the most votes in the June primary by a slim margin, pulling in 45.3 percent to Wiener’s 45.1 percent.

But Wiener has locked in more high-profile Democratic Party endorsements, including that of the man they are vying to replace, state Sen. Mark Leno, who is termed out. Still, Kim is no slouch in that department, having won the backing of progressive hero Sen. Bernie Sanders, D-Vermont, and a host of San Francisco leaders including former Supervisor Bevan Dufty, with whom she campaigned Thursday morning on Church Street.

Wiener also has a slight upper hand in the money race. He brought in nearly $1.3 million between Jan. 1 and Sept. 24, according to his latest campaign finance report, leaving him with $364,000 in the bank. Kim raked in $932,000 over the same period, giving her almost $208,000 in her campaign account.

Before meeting up Thursday with Harris, Wiener grabbed lunch with former Rep. Barney Frank, D-Massachusetts, another endorser. So where did Frank and Wiener eat? Dapper Dog, a specialty hot dog spot.