When I was bringing in food scraps from a local food pantry, there'd be a lot of avocados in the mix. The chickens would occasionally eat the "meat" of the fruit, but ignore the skins and pits (where I believe the potentially harmful chemicals are). Never had issues with apple seeds, peach pits, or anything else. Given plenty of options, chickens appear to be quite good at not eating what they shouldn't.