A preliminary 3.7 magnitude earthquake struck Friday morning in San Francisco, according to the United States Geological Survey.