Yeah holding there mouth shut is the best thing to do, we had Panacur powder which we put in our pups food, he seemed to eat that!
But the best thing is what everyone said hold their mouth shut until they swallow, my chihuahua is like that with taking tablets, he holds it under his tongue and spits it out, so we tend to hold his mouth shut and massage his throat to coax him to swallow.