Best way to get rid of constipation?

Anna
I'm 28 weeks and tried fiber one the other day but it just gave me diarreah and I went back to being constipated the next day, so what are my other options? I eat plenty of fruit and vegetables.