我試圖在我的網站上有一個可代表YouTube共享的分享按鈕。假設頁面是http://www.mysite.com/test.html。代表另一個網站的Facebook共享
的test.html
<!DOCTYPE html>
<html>
<head>
<meta property="og:url" content="http://www.youtube.com">
<meta property="og:description" content="My custom YouTube share">
<meta property="og:title" content="YouTube Share">
<meta property="og:image" content="http://www.mysite.com/preview.png">
</head>
<body>
<a href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.mysite.com%2Ftest.html">Share</a
</body>
<html>
但是當我點擊分享它完全無視我的元屬性。我怎樣才能得到它,以便Facebook查看我所有的聲明元屬性?還是不可能代表另一個網站分享?
編輯: 這裏是我想要做的一個樣本截圖:
嘗試與改變A HREF的u參數你urlized YouTube網址'Share' – Mik
的元數據取自最終的URL重定向後,所以不要使用og:url標籤 – Igy
@Mik重定向Facebook的抓取工具,我的問題的關鍵是我的共享外部URL是否可以具有我指定的屬性(描述,標題,圖像)。 –