What do you mean by “dynamic”? The thumbnails are already sent depending on the Topic contents.
When I share a Topic from my forum, the Open Graph thumbnail shows the image associated with that specific Topic (if one exists) and if not it will use the graphic from the branding Settings as a fallback.
Here are examples of both, one without a Topic thumbnail, and one with:
This works out of the box.
