Baby constipation

My daughter is 7 months old she’s constipated, she’s pooping little balls that are hard and causing her to bleed. I’m not sure what to give her to help I’ve given her diluted apple juice and prune baby food. Any suggestions?