Actually, Facebook's way of finding thumbnails isn't so magical. It searches for a set of <meta>
and <link>
tags which specify which title, description, and image to use.
If it cannot find any of the <meta>
and <link>
tags it is looking for, it basically asks the user to choose whichever <img>
tag fits.
In the case of the NY Times, it uses the following:
<meta name="thumbnail" content="whatever.jpg" />
Facebook recommends you use a <link>
tag instead for the thumbnail.
<meta name="title" content="title" />
<meta name="description" content="description " />
<link rel="image_src" href="thumbnail_image" />
Source: Facebok Share/Specifying Meta Tags
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…