justcamehere
Would it be this:
Place this code in the header.php just below <? php
function random_pic($dir, $nf=3)
{
$files = glob($dir . DIRECTORY_SEPARATOR . '*.jpg');
shuffle($files);
return array_pop($files);
}
//$number = rand(); ?v=$number
$path = 'images';
$file_1 = random_pic($path, 1);
$image = file_get_contents($file_1);
$og_img = base64_encode($image);
and then put this code before </head>
<meta name="twitter:card" value="summary">
<meta property="fb:app_id" content="224711598334964" />
<meta property="og:title" content="This is what you need !" />
<meta property="og:type" content="article" />
<meta property="og:url" content="
http://yoursite.com" />
<meta property="og:image" content="
http://yoursite.com/<?php echo $file_1 ?>" />
<meta property="og:description" content="Liked it? Click Here & Get it for FREE."/>
<meta property="og:site_name" content="yoursite.com - What Do You Need?"/>
And also create a folder in your hosting called "Images" and place the images that you want to appear. I believe it would be something: