Google +1 Generated Thumbmail in Profile

前端 未结 5 1295
情深已故
情深已故 2020-12-29 10:36

When you press the google +1 button on a site it grabs the typical meta data such as title and description. I thought it might be looking for the first image in the first ar

5条回答
  •  渐次进展
    2020-12-29 11:10

    So... by the looks of it Google doesn't use the Open Graph Protocol http://ogp.me/ as their default information scrape.

    For the image on the +1 listing they take the first useable image. The important part here is that even though on the +1 listing the image is resized to 45px x 45px the image you want to be used must be over 125px (at least). I'm using an image 180px x 180px (nice for scaling down to 45 x 45) and making sure it's the first large image on the page.

    The title comes from the first h1 on the page and the description seems to come from the first paragraph; about 135 characters....

提交回复
热议问题