We construct an agent-based New Keynesian DSGE model with different social network structures to investigate the significance of network topologies to macroeconomic stability. According to our simulation results, we find that the more liquid the information flow, the higher the stability of the economy. Furthermore, the speed of information dissemination and the degree of clustering among agents may give rise to an adverse effect on economic stability. Finally, we find that the scale-free network will lead to the most dramatic economic fluctuations. The result is ascribed to the scale-free network's high centrality. It indicates that the opinion leaders may bring about a conglomerate effect that will cause fluctuations in the economy.