public function extractOpenGraphImages($content)
{
$matches = array();
// check if any img-tags are present in the content
if (preg_match_all('/<img.*?src="(.*?)".*?\\/>/i', $content, $matches)) {
// loop all found images and add to Open Graph metadata
foreach ($matches[1] as $image) {
$this->addOpenGraphImage($image);
}
}
}