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
php image meta facebook-opengraph snapshot


source to share


No one has answered this question yet

Check out similar questions:

4270
Link. What does this symbol mean in PHP?
287
FB OpenGraph og: image does not pull images (https perhaps?)
99
How to use the 'og' (Open Graph) meta tag for Facebook sharing
3
FB Open Graph OAuthException: (# 3502) og: type is website, not namespace: object
1
Dynamically load meta tag information based on page name?
1
Dynamically generated meta tags
0
How to display image of byte array inside meta content tag
0
Is it possible to set default image to Facebook OpenGraph only?
0
Twitter Open Graph Dynamic Images With One URL
0
Am I creating these facebook opengraph metafiles correctly?



All Articles
Loading...
X
Show
Funny
Dev
Pics