"Africans" is too general...
Mbuna are herbivores and should be fed flakes/pellets that contain spirulina and are labeled as being for african cichlids. Haps are omnivores, so can be fed both veggies and meat-based foods. Again, the label should say that the food is for African Cichlid Haplochromines.
Sorry to be preachy, but when I started out with a tank of Mbuna, I was feeding them Tetra Cichlid Sticks, which are designed to be fed to South American Cichlids.

Over time, several of the mbuna developed "malawi bloat" which was caused, at least in part, from feeding them the wrong type of food. Eventually the bloat killed them
IMHO, correct diet is the most important thing for long term health of your fish...along with regular water changes of course.