A 3.4-magnitude earthquake struck the San Francisco area Friday afternoon, according to the U.S. Geological Survey.