Link previews are generated using a small bit of meta-tag code that is included the <HEAD> of your html page. This simple snippet of code tells Facebook and many of the other social networks what image, title, and description to use when a post goes live. You can preview what your own link previews look like using this handy debug tool provided by Facebook.
There are several ways to ensure that your link previews always look great.