確保在代碼中使用正確的data-href來喜歡文章。 (您應參閱網址爲單個項目,即使它包含多篇文章的網頁上。)
例如:
<div class="fb-like"
data-href="http://www.yoursite.net/articles/unique-article-id-goes-here-or-something-like-that"
data-send="false"
data-layout="button_count"
data-width="140"
data-show-faces="false"
data-font="segoe ui"></div>
Facebook已經開發了一種方便的小工具創建的代碼爲你! 請確保您退房the Facebook Developers page on like buttons。
如果這樣做是正確的,它應該從該鏈接獲得opengraph數據,並且這將被同時修復。
您必須確保og數據設置正確。(這是www.yoursite.net/articles/unique-article-id-goes-here-or-something-like-that頁。)
<meta property="og:title" content="Title of the article" />
<meta property="og:type" content="article" />
<meta property="og:url" content="same-url-as-the-data-href-from-like-button" />
<meta property="og:image" content="url-to-image-you-would-like" />
<meta property="og:site_name" content="Name of your site"/
祝你好運!
我添加了一個鏈接到我的網站的頁面上,我有這個問題,請參閱。 – user1953363
編輯我的答案。請檢查一下。您應該更改頁面中的og-信息。 –