How does Facebook Sharer select Images and other metadata when sharing my URL?

前端 未结 12 1992
忘掉有多难
忘掉有多难 2020-11-21 04:20

When using Facebook Sharer, Facebook will offer the user the option of using 1 of a few images pulled from the source as a preview for their link. How are these images selec

12条回答
  •  粉色の甜心
    2020-11-21 05:04

    This is what worked for me: I placed the desired thumbnail image on the page right after the tag and making it too small to see..

    
    

    I have not tested it with height 0 and width 0 but it probably will still work.. This does not guarantee the user will select this image..

    ALSO it seems like Facebook caches the thumbnails on your page and doesnt always check it for new ones.. try adding this to another page on your site and you'll see that it works.

提交回复
热议问题