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.
Toddler uninjured after being knocked over by Obama family dog
Florida bear attack: Black bear mauls woman's face