This sounds like a rumor or an urban legend. There is no credible evidence to support this claim, and it would be a major food safety and ethical violation.
Chocolate is made from cocoa beans, sugar, and often milk solids, vanilla, and other flavorings. Human hair is completely unrelated to the ingredients and processes involved in chocolate production.