Facebook link thumbnail

前端 未结 5 1645
忘掉有多难
忘掉有多难 2021-01-01 23:22

When posting a link to a website in Facebook (Google+ and the rest count too) you\'re given a thumbnail, or selection of thumbnails to choose from. These are tags from the

5条回答
  •  长情又很酷
    2021-01-02 00:06

    There is a Meta-Tag to let the Application (like FB) know that you want a specific image taken rather than let the user choose one.

    
    

    For Facebook there is also an other Way to achieve this by using Open Graph protocol.

    You need to prepare your Website for using og: Tags by adding the og-Namespace in your html-Tag:

    
    

    Then you are able to use the og: Meta-Tags like this:

    
    
    
    

    For Facebook this six og Meta-Tags are required:

    • og:title
    • og:type
    • og:image
    • og:url
    • og:site_name
    • og:admins OR og:app_id

    You can find additional information an more og: types at: https://developers.facebook.com/docs/opengraph/

提交回复
热议问题