php 文件:
$data['listing_cover'] = md5(rand(10000000,20000000)).'.jpg';
move_uploaded_file($_FILES['listing_cover']['tmp_name'],'uploads/listing_cover_photo/'.$data['listing_cover']);
html 文件:
<head>
<meta property="og:image" content="<?php echo base_url('uploads/listing_cover_photo/'.$data['listing_cover']); ?>" />
</head>
Facebook 上的错误:
提供的 og:image URL,https://eforie.org/uploads/listing_cover_photo/ 无法作为图像处理,因为它的内容类型无效。