[英]How do I change the facebook recommended text, link or thumbnail image?
當用戶推薦我的鏈接(包含內容、圖像等)時,它只會將站點名稱顯示為沒有文本或圖像的鏈接。 我怎樣才能編輯它呢?
我的代碼如下;
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js#appID=1234567890&xfbml=1"></script>
FB.Event.subscribe('edge.create', function(response) {
//replace the next line with calling your div
alert('Shared!');
});
</script>
<fb:like href="http://www.mysite.com/" send="false" width="450" show_faces="true" action="recommend" font=""></fb:like>
將開放圖形元標記添加到您的頁面,以便它知道要拉入什么。https://developers.facebook.com/docs/opengraph/
在http://www.mysite.com/上,為圖像添加og:image
元標記,並為自定義文本添加og:description
。
文檔: https://developers.facebook.com/docs/opengraph/
有一個 linter 工具可以檢查你是否做對了: http://developers.facebook.com/tools/debug
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.