Prior to receiving his PhD Gregorian had already begun teaching European and Middle Eastern history at San Francisco State College ( now San Francisco State University ) upon returning to California from Afghanistan in 1962 .