I’m trying to get Facebook’s meta tags from my HTML.
I’m using simple html dom to get all html data from the site.
I’ve tried with preg_replace, but without luck.
I want for example to get the content of this fb meta tag:
<meta content="IMAGE URL" property="og:image" />
Hope someone can help! 🙂
I Was going to suggest to use get_meta_tags() but it seems to not work (for me) :s
But I would rather suggest using DOMDocument anyways:
Hope it helps