FORTUNE -- A Hershey's Kiss is more complicated than it looks. Most of the cocoa in it and other chocolate candies comes from West Africa, and it makes its way through a long supply chain to get to U.S. factories. Now more than ever, Fortune 500 companies such as Hershey (HSY) have to take responsibility for every link in that chain. On January 30, Hershey announced plans to put $10 million towards solving child labor problems on West African cocoa farms by 2017. The money should also help farmers access educational programs and improve their cocoa yield. Hershey's latest move is part of a larger effort to secure the cocoa supply chain whose origins reach back to the founding of the World Cocoa Foundation (WCF) in 2000. The WCF joined big chocolate companies -- including Hershey and its competitors Mars, Nestlé, and Kraft (KFT) -- with governments and farmers in cocoa-producing nations.