我只是想在Facebook中发布指向我的博客文章的链接,并带有指向博客的图像链接。有3张图片可供选择,但我想要的都不是。我在链接上运行调试器,并得到了错误。
然后我做了研究,指出我必须使用元数据和代码,因此我将它们插入了我的网站。
然后我将这段代码放在我的网站中,但是无法为我提供想要的图片:
<meta property="og:title" content="Brutally Honest"/>
<meta property="og:type" content="Article"/>
<meta property="og:url" content="http://ghettobastard.com/brutally-honest/i-have-what-you-can-t-buy"/>
<meta property="og:description" content="Ghetto Bastard Brutally Honest Blog. An honest view of life, love, the ghetto, money and anything else that comes to mind."/>
<meta property=og:image" content="https://www.google.com/imgres?imgurl=https%3A%2F%2Fwakeup-world.com%2Fwp-content%2Fuploads%2F2014%2F10%2FLiving-in-the-True-Essence-of-Love.jpg&imgrefurl=https%3A%2F%2Fwakeup-world.com%2F2014%2F10%2F04%2Fliving-in-the-true-essence-of-love%2F&docid=MhcGyxPHmfS_7M&tbnid=bErZKLEsfj57cM%3A&vet=10ahUKEwjchcT-mYXjAhUknuAKHezoDpAQMwhIKAEwAQ..i&w=819&h=586&bih=937&biw=1920&q=essence%20of%20%20love&ved=0ahUKEwjchcT-mYXjAhUknuAKHezoDpAQMwhIKAEwAQ&iact=mrc&uact=8/>
<meta property="fb:app_id" content="416990419028199" />
https://www.facebook.com/dialog/share?app_id=416990419028199&display=popup&href=...
这些是我得到的错误。
Inferred Property The 'og:url' property should be explicitly provided, even if a value can be inferred from other tags.
Inferred Property The 'og:title' property should be explicitly provided, even if a value can be inferred from other tags.
Inferred Property The 'og:description' property should be explicitly provided, even if a value can be inferred from other tags.
Inferred Property The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.
Share App ID Missing The 'fb:app_id' property should be explicitly provided, Specify the app ID so that stories shared to Facebook will be properly attributed to the app. Alternatively, app_id can be set in url when open the share dialog.
请告诉我我在做错什么。