San Francisco managed just three hits, but scratched out a run in the first on a sacrifice fly by Brandon Belt.
The hard-luck loss went to Randall Delgado (4-5), who gave up only three hits in seven innings.
San Francisco, which won 94 games last season prior to winning the World Series for the second time in three years, posted just its 60th victory of the season Friday.
'SNL': 'Anchorman 2' cast, One Direction sing 'Afternoon Delight' [VIDEO]
Trader Joe's: Car crashes into Long Island store, injuring 11