admin avatar

Web page sharing to Twitter, Facebook with thumbnail function realization

🕝 by admin





Implementation of Twitter webpage sharing with thumbnails

1
2
3
4
5
6
<meta property="twitter:url" content="https://demo.com/share/">
        <meta property="twitter:type" content="article">
        <meta property="twitter:title" content="democontent?">
        <meta property="twitter:description" content="democontent?">
        <meta property="twitter:image" content="https://domain.com/domain.jpg|imageslim">
        <meta name="twitter:image:src" content="https://domain.com/domain.jpg|imageslim">

Facebook page sharing with thumbnail function realization

1
2
3
4
5
6
<meta property="fb:app_id" content="258436512258697">
        <meta property="og:url" content="https://domain.com">
        <meta property="og:type" content="article">
        <meta property="og:title" content="democontent">
        <meta property="og:description" content="democontent?">
        <meta property="og:image" content="https://domain.com/domain.jpg|imageslim">

Universal web page sharing with thumbnail function implementation

1
2
3
4
5
6
<meta property="url" content="deomain.com">
        <meta property="type" content="article">
        <meta property="title" content="demotitle">
        <meta property="description" content="demotitle">
        <meta property="image" content="https://domain.com/domain.jpg|imageslim">
        <meta itemprop="image" content="https://domain.com/domain.jpg|imageslim">





💘 相关文章





写一条评论

Based on Golang + fastHTTP + sdb | go1.18.1 Processed in 2ms