
I would strongly suggest to never, ever use any sort of flea or worm treatment that HASN'T been bought from a vet or a pet chemist. The treatments available over the counter are never as effective (sometimes do not work at all) and I have heard far too many horror stories. I wormed a cat once with an over the counter worming tablet and she had a stroke. That was about 15 years ago but only about a year ago I heard of somebody having the exact same thing happen to their cat, then -with the same product.
If your dog seems fine now, all is probably well -but if there is any other problem, see your vet to play safe.