php file :
$data['listing_cover'] = md5(rand(10000000, 20000000)).'.jpg';
move_uploaded_file($_FILES['listing_cover']['tmp_name'], 'uploads/listing_cover_photo/'.$data['listing_cover']);
html file :
<head>
<meta property="og:image" content="<?php echo base_url('uploads/listing_cover_photo/'.$data['listing_cover']); ?>" />
</head>
Error on facebook :
Provided og:image URL, https://eforie.org/uploads/listing_cover_photo/ could not be processed as an image because it has an invalid content type.