social network sharing

How do I fix the settings (or where do I fix them) so that when I share to a social network, the featured image and excerpt appears?