How do you give your baby their medicine?

Bárbara • I'm 28, and I have a beautiful baby girl born on May 30th, 2017 ^^ I also have a dog named Oliver and I love him lots!

My baby is 1 year old and she has a fever, everytime I try to give her the medicine she starts crying and moving her head and spits it, is there some way I can give it to her without she crying so much? When she was little she would take it and now that she understand what it is she does all of this. Any advice?