Create a screenshot of the page and set it as an open graphic image (meta tag)

I want to take a screenshot of the content <body>

in the page then set it as one opengraph page image:

<meta property="og:image" content="<-- image -->">

      

In fact, my page is generating results dynamically based on search keywords.

If I use php it doesn't work because php is executed before the body exists, so there is no snapshot.

How can I solve this?

+3


source to share





All Articles