Facebook Chief Technology Officer Mike Schroepfer will leave the social-media giant next year after 13 years at the company and eight years in the CTO position, the company confirmed Wednesday.