2017-01-05 60 views
0

我在拋出設置爲自己的公司博客上的一個子域(blog.twocan.co分享至社交媒體將不包括圖像

對於博客而言,我會簡單的WordPress輕鬆路線的安裝。

我們市場營銷的關鍵是能夠在社交媒體上分享短篇貼文和大圖片。

我想能夠直接分享任何博客文章到Facebook或LinkedIn,但不幸的是,當我點擊分享按鈕彈出框只包括文本分享,而不是圖像。

我已看過標記,可以看到圖像位於<article></article>標記內。

這裏是圖像標籤本身:

<img src="https://i1.wp.com/blog.twocan.co/wp-content/uploads/2017/01/yolo.png?fit=800%2C500" class="attachment-full size-full wp-post-image" alt="English test" srcset="https://i1.wp.com/blog.twocan.co/wp-content/uploads/2017/01/yolo.png?w=800 800w, https://i1.wp.com/blog.twocan.co/wp-content/uploads/2017/01/yolo.png?resize=300%2C188 300w, https://i1.wp.com/blog.twocan.co/wp-content/uploads/2017/01/yolo.png?resize=768%2C480 768w" sizes="(max-width: 800px) 100vw, 800px" width="800" height="500">  
+0

的https: //wordpress.org/support/topic/when-sharing-on-social-media-images-not-showing/檢查它可能會幫助你 –

+1

嗯,我檢查了我的上傳目錄權限,它是755 ...不確定如果這是問題,但感謝您的幫助。 –

+1

我試着在臉書上分享貼子,並顯示圖像。 –

回答

1

要與普通的社交網絡共享圖像,需要open graph元添加到頭部about the protocol

這可以用插件或直接在主題內完成。

你會發現很多在網絡上的教程,但是,你需要檢索功能的圖像和寫類似的東西:

<meta property="og:url"    content="http://www.nytimes.com/2015/02/19/arts/international/when-great-minds-dont-think-alike.html" /> 
<meta property="og:type"    content="article" /> 
<meta property="og:title"    content="When Great Minds Don’t Think Alike" /> 
<meta property="og:description"  content="How much does culture influence creative thinking?" /> 
<meta property="og:image"    content="http://static01.nyt.com/images/2015/02/19/arts/international/19iht-btnumbers19A/19iht-btnumbers19A-facebookJumbo-v2.jpg" /> 

從FB developper例如 Fb OG markup