Facebook Inc's chief product officer and one of its earliest employees, Chris Cox, said on Thursday he is leaving the company, just days after Chief Executive Officer Mark Zuckerberg revealed a plan to pivot the world's biggest social network to an encryption-focused messaging company.