That being said, it is not in my nature to recommed that a dog be drugged to get it to act a certain way. Do you have any idea how many will bite instead. Giving a dog drugs to behave a certain way is a quick fix. Like I said, I am not a vet. So if the vet said the medication is safe, I am in no position to question him.
Training takes time and a commitment.
Drugs you can adminster and walk away and never deal with the problem. I call that a quick fix and not dealing with the problem. Posisitve reinforcement DOES work. He gets them only when he quiets down and stops nipping at the shoes. Put him away without saying a word.