2015-12-11 65 views
0

試圖創建推特卡。我在頁面的標題中有以下元標記。出於某種原因,當我將鏈接放入我的推文中時,Twitter卡片不會呈現。有什麼建議麼?即使存在元標記,也不會呈現Twitter卡

<!--- og: tags to create nice facebook & twitter posts for an auction ---> 
<meta name="twitter:card" content="summary" /> 
<meta name="twitter:site" content="@herberzt_dev" /> 
<meta name="twitter:creator" content="@herberzt_dev" /> 
<% if [email protected]? %> 
    <meta property="og:title" content="<%= @item.name %>"/> 
    <meta property="og:type" content="website"/> 
    <meta property="og:url" content="<%= request.original_url %>"/> 
    <meta property="og:image" content="<%= @item.photo(:thumbnail) %>"/> 
    <meta property="og:description" content="<%= @item.description %>"/> 
    <meta name="twitter:site" content="@herberzt_dev"> 
<% elsif [email protected]? %> 
    <meta property="og:title" content="<%= @auction.name %>"/> 
    <meta property="og:type" content="website"/> 
    <meta property="og:url" content="<%= request.original_url %>"/> 
    <meta property="og:image" content="<%= @auction.photo %>"/> 
    <meta property="og:description" content="<%= @auction.description %>"/> 
<% end %> 

回答

相關問題