With the information you gave it appears your daughter may be having infection in her tonsils. Because of it she is not able to swallow and so her saliva is flowing out. Secondly this infection is common in her age. But it is more important to have a look at her throat to decide precisely what is causing her problem and to initiate appropriate treatment. So better show her to an ENT specialist
Till then you can do following things:
As you are able to give her Ibuprofen
by mouth I assume she can still swallow. So give her plenty of warm liquids (water, milk etc). If she is not taking adequately by mouth then she may need intravenous fluids to prevent dehydration
You can give her paracetamol
in place of Ibuprofen.
She may need a course of antibiotic which your doctor will prescribe.