Dynamic Image for Facebook Opengraph og:image meta tag -


i trying share image website on facebook. image can dynamic, other meta remain same.

is there way can have dynamic data in og:image tag, or have go other option of fb post apis.

yes , no. facebook scrapes site once, , cached metadata finds, unless go here , force scraper crawl site again. cache expire (perhaps after 1-2 days?), when requested again outside of cache period, facebook crawl site again.

you can have dynamically generated og:image meta tag, read one time (per cache period), , instance of image saved.

for example, if user shares page, , page returns imagea.png in og:image tag, image associated page's metadata.

if user b shares same page within same cache period, facebook forgo metadata scraping , assume imagea.png still valid og:image.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -