The juice from the fruit would be squeezed over the entire head and scrubbed using the finger pads. It would then be left on the head/ hair for a short period of time before rinsing and washing with just about any soap that was available.
The Tuna Plant
Aloe Vera
The Oil Nut Tree (Castor Oil)