My boy (3yrs) also having the same constipation problem. Each time he passed motion, he's tearing and his poo-poo has blood stain.
Initially, I asked him to take prune juice, he took a few times. It worked. But awhile, he didn't want to drink it anymore. I tried barley, yogurt, papaya also...