Link preview (meta tags) on HTML <head>, SSR - PHP

Hello there, im building a personal blog hosted in here. I could manage to display a link preview card, like facebook and twitter does when you paste a URL of the site. This works fine with a single page.

Is there any possibility to re render the content depending on the URL, what i want is like youtube when you paste a URL with a video, it renders the video preview image.

Example: http://myblog.com/article/myArticle

the server needs to read the URL, get the article data though calling the database and re render the <head> of the html with the article info, then finally send the html to the client

I know you can do this with PHP, any ideas how to implement this? can I actually do it on this server/host?

thanks a lot for your time

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.