当页面链接到Facebook时如何标记照片以用作缩略图 [英] How to tag a photo to be used as a thumbnail when a page is linked to on Facebook

查看:100
本文介绍了当页面链接到Facebook时如何标记照片以用作缩略图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当某人在Facebook上发布链接时,Facebook会自动查找要用作新闻摘要中显示的缩略图的照片.是否有某种(HTML)标记包围您想用作首选的照片?

When a person posts a link on Facebook, Facebook automatically finds a photo to be used as a thumbnail that shows up in the news feed. Is there some sort of (HTML) markup to surround a photo you'd like to use as the first choice?

推荐答案

您想要的是Facebook在

What you want are the <meta> tags that Facebook defines in their documentation on Facebook_Share/Specifying_Meta_Tags.

您不必将元数据放在图像本身周围,而是将其放在文档的开头,如下所示:

You don't put the metadata around the image itself, rather, you put it in the head of the document, like this:

<meta name="title" content="The Title Of The Link" />
<meta name="description" content="A description of the link would go here." /> 
<link rel="image_src" href="http://www.example.com/images/image.jpg" />

这篇关于当页面链接到Facebook时如何标记照片以用作缩略图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆