[英]Facebook Share not finding og:image tag
我試圖弄清楚Facebook共享協議如何獲取其圖像。
示例文章: http : //www.startribune.com/sleepy-eye-quads-celebrate-65th-birthday/302364361/
截至目前(CDT 2015年5月8日1:00 pm),將該URL插入https://developers.facebook.com/tools/debug/og/object/會發出以下警告: og:image was not defined, could not be downloaded or was not big enough. Please define a chosen image using the og:image metatag, and use an image that's at least 200x200px and is accessible from Facebook. Image 'http://stmedia.stimg.co/obed021814.JPG?w=600&h=600' will be used instead.
og:image was not defined, could not be downloaded or was not big enough. Please define a chosen image using the og:image metatag, and use an image that's at least 200x200px and is accessible from Facebook. Image 'http://stmedia.stimg.co/obed021814.JPG?w=600&h=600' will be used instead.
但是,在頁面的“基於原始標記”頁面的下方,我們構造了頁面的以下“打開圖屬性”,它清楚地顯示了頁面上og:image標記中的正確圖像。
為什么打開圖會認為og:image未定義,或者在可以找到它的頁面很遠的地方無法訪問它?
標頭中的meta標簽如下:
<link rel="canonical" href="http://www.startribune.com/sleepy-eye-quads-celebrate-65th-birthday/302364361/" />
<meta property="og:url" content="http://www.startribune.com/sleepy-eye-quads-celebrate-65th-birthday/302364361/" />
<meta property="og:title" content="Sleepy Eye quads celebrate 65th birthday" />
<meta property="og:site_name" content="Star Tribune" />
<meta name="news_keywords" content="" />
<meta name="description" content="The Sleepy Eye quads have returned to their childhood home in southern Minnesota to celebrate their 65th birthday." />
<meta property="og:description" content="The Sleepy Eye quads have returned to their childhood home in southern Minnesota to celebrate their 65th birthday."/>
<meta property="og:image" content="http://stmedia.startribune.com/images/1430701562_10026501+Quads+Birthday.JPG" />
</head>
如@CBroe所述,最好在Facebook調試器中運行與頁面相關的所有鏈接。
至於具體的圖像問題,如果可能的話,我還建議您添加og:image:width
和og:image:height
元標記,以幫助抓取工具按照此文檔抓取您的圖像。
如果您還有其他頁面遇到相同的問題,那么在嘗試在調試器中運行圖像url本身之前,我將提供上述標簽,以查看是否有幫助。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.