How to tag a photo to be used as a thumbnail when a page is linked to on Facebook

前端 未结 3 978
陌清茗
陌清茗 2021-02-02 14:12

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 sur

3条回答
  •  暖寄归人
    2021-02-02 14:48

    What you want are the 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:

    
     
    
    

提交回复
热议问题