Infectious disease presents great hazards to public health, due to their high infectivities and potential lethalities. One of the effective methods to hinder the spread of infectious disease is vaccination. However, due to the limitation of resource and the medical budget, vaccinating all people is not feasible in practice. Besides, the vaccinating effects are difficult to be timely observed through traditional ways, such as outpatient services. To tackle above problem, we propose an e-healthcare mobile social internet of things (MSIoTs) based targeted vaccination scheme to fast contain the spread of the infectious disease. Specifically, we first develop an e-healthcare MSIoT architecture by integrating the e-healthcare system and MSIoTs, whereby the spread status of the infectious disease is timely collected. Furthermore, a graph coloring and spreading centrality-based optional candidate searching algorithm is devised to hunt for the candidates that are powerfully capable of preventing infectious disease. Especially, in order to reduce the vaccination cost, we design an optimal vaccinated target selection algorithm to choose a minimum number of targets whose locations are differentially distributed. Extensive simulations demonstrate that the proposed scheme can effectively prevent infectious disease as compared to conventional schemes. Index Terms-E-healthcare mobile social internet of things, infectious disease, fast containment, targeted vaccination.