Egg shell thinning was the reason for the peregrines declines post World War 2 and it was as a result of the DDT and related DDE chemical pesticides. The DDT killed the bugs it was suppose to kill (and lots of others it was not a good idea to kill) and when those bugs were eaten they built up in the stored fat of the prey bird species which in turn were eaten by birds of prey (such as the peregrines) and again was stored in their fat reserves. The birds themselves weren't affected but the stores they used to produce the eggs and the eggshells were. The eggshells were thinner and this caused them to crack and the embryos/chicks would be crushed (peregrines are pretty light so it doesn't take much), the shells would crack and infection etc would get in and the embryo/chick would die.
So you weren't wrong in what you read, there are poisons that cause eggshell thinning, fortunately those particular chemicals have been banned in Canada, the US and Mexico for a few decades. Further south, were many peregrines overwinter, DDT & DDE-related pesticides are still in common use which is still of concern for peregrine researchers but eggshell thickness seems to not be a problem currently. What is a problem at the moment seems to be the fire-retardent chemicals that we have sprayed on everything and which is now common in the environment. There are some concerns about behavioural (rather than the DDT physiological) changes which are disturbing. Will see if I can't find some more recent information on that and will post it here on this thread.