我在歌曲页面上使用meta标签,如...
<meta property="og:url" content="{{ route(Route::getCurrentRoute()->getName(),$coverSong->cover_slug) }}">
<meta property="og:type" content="Website">
<meta property="og:title" content="{{ $coverSong->cover_name }}">
<meta property="og:image" content="{{ ($coverSong->youtube_thumb) ? 'https://'.$coverSong->youtube_thumb : asset('assets/images/music.png')}}">
<meta property="og:image:secure_url" content="{{ ($coverSong->youtube_thumb) ? 'https://'.$coverSong->youtube_thumb : asset('assets/images/music.png')}}">
<meta property="og:description" content="Listening {{ $coverSong->cover_name }} (Cover song of {{ $originalSong->name }})">
<meta property="og:site_name" content="coversage.com">
<meta property="og:locale" content="en_US">
但我无法在我的共享弹出窗口中显示图像
facebook给出了错误... ...
Object at URL 'http://coversage.com/cover/bewajah-cover/songs' of type 'website' is invalid because the given value 'http://img.youtube.com/vi/kVG-kTPqy1E/mqdefault.jpg' for property 'og:image:secure_url' could not be parsed as type 'url'.
答案 0 :(得分:0)
您的图片太小。最小尺寸约束为200px×200px。 看这里
https://developers.facebook.com/tools/debug/sharing/?q=http%3A%2F%2Fcoversage.com%2Fcover%2Fbewajah-cover%2Fsongs