[英]How do I change the facebook recommended text, link or thumbnail image?
When a user recommends my link (which has content, images, etc) it only displays the site name as the link with no text or images.当用户推荐我的链接(包含内容、图像等)时,它只会将站点名称显示为没有文本或图像的链接。 How can I edit it so it does so?我怎样才能编辑它呢?
My code is as follows;我的代码如下;
<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>
Add open graph meta tags to your page so it knows what to pull in. https://developers.facebook.com/docs/opengraph/将开放图形元标记添加到您的页面,以便它知道要拉入什么。https://developers.facebook.com/docs/opengraph/
On http://www.mysite.com/ , add the og:image
meta tag for an image and og:description
to customize the text.在http://www.mysite.com/上,为图像添加og:image
元标记,并为自定义文本添加og:description
。
Docs: https://developers.facebook.com/docs/opengraph/文档: https://developers.facebook.com/docs/opengraph/
There's a linter tool that checks whether you did it right: http://developers.facebook.com/tools/debug有一个 linter 工具可以检查你是否做对了: http://developers.facebook.com/tools/debug
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.