I'm using Statically (https://statically.io/) which offers screenshot API so thumbnail can be generated automatically. In my blog template, I use the following snippet:
<meta property="og:image" content="https://cdn.statically.io/screenshot/<%- post.link %>">