2016-12-05 167 views
1

卡驗證人正在顯示我的總結卡,但是,當我實際嘗試分享它時購買點擊「Twitter分享按鈕」它不顯示Twitter卡,它只顯示常規推文。Twitter分享按鈕不顯示Twitter卡

這是什麼驗證說:

您的網站被列入白名單的summary_large_image卡

信息:頁成功抓取信息:18元標籤中發現信息: 嘰嘰喳喳:卡= summary_large_image標籤發現信息:卡片加載成功

這些是t他標籤我使用:

<meta name="twitter:card" content="summary_large_image"> 
<meta name="twitter:site" content="@username"> 
<meta name="twitter:creator" content="@username"> 
<meta name="twitter:title" content="Some Title"> 
<meta name="twitter:description" content="Some description."> 
<meta name="twitter:image" content="http://example.com/images/dog.jpg"> 

這是HTML:

<a class="twitter-share-button" 
    href="https://twitter.com/intent/tweet?text=Testing Testing Testing"> 
Tweet</a> 

回答

1

對於任何與tyhe同樣的問題strugling,我回答我自己的問題。

這裏是我發現:

首先,請記住,該卡只顯示在最後發佈的資料Tweet - 不鳴叫作曲家窗口。然而,就我而言,它並沒有在最後發佈的推文中顯示。

2.您必須在text參數之後加入您想要共享的頁面的鏈接。另外你需要編碼它的URL值。所以,而不是text=http://example.com使用text=http%3A%2F%2Fexample.com。如果您轉到http://www.w3schools.com/tags/ref_urlencode.asp,則可以自動進行此編碼轉換。

有人告訴我,有時候是有延遲Twitter的履帶式緩存您的網站,這可以解釋爲什麼卡不能在你的拳頭最終發佈的tweet顯示試圖分享。在我的情況下,它花了48小時,之後,點擊分享按鈕將立即張貼卡。

希望這可以幫助別人...

+0

謝謝你的解釋。我變得瘋了:D – Zl3n