Some flea soaps contain permethrin, a synthetic pyrethroid insecticide, which can be toxic to dogs if ingested in large amounts. Clinical signs of permethrin toxicity can include vomiting, diarrhea, tremors, seizures, and even death.
If your dog has ingested flea soap, contact your veterinarian immediately.