HTML 社交媒体元标记
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了HTML 社交媒体元标记相关的知识,希望对你有一定的参考价值。
<!-- bare minimum -->
<!-- Twitter Card data -->
<meta name="twitter:card" value="summary">
<!-- Open Graph data -->
<meta property="og:title" content="Title Here" />
<meta property="og:type" content="article" />
<meta property="og:url" content="http://www.example.com/" />
<meta property="og:image" content="http://example.com/image.jpg" />
<meta property="og:description" content="Description Here" />
<!-- Standard -->
<!-- Twitter Card data -->
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@publisher_handle">
<meta name="twitter:title" content="Page Title">
<meta name="twitter:description" content="Page description less than 200 characters">
<meta name="twitter:creator" content="@author_handle">
<-- Twitter Summary card images must be at least 200x200px -->
<meta name="twitter:image" content="http://www.example.com/image.jpg">
<!-- Open Graph data -->
<meta property="og:title" content="Title Here" />
<meta property="og:type" content="article" />
<meta property="og:url" content="http://www.example.com/" />
<meta property="og:image" content="http://example.com/image.jpg" />
<meta property="og:description" content="Description Here" />
<meta property="og:site_name" content="Site Name, i.e. Moz" />
<meta property="fb:admins" content="Facebook numeric ID" />
<!-- ARticle -->
<!-- Update your html tag to include the itemscope and itemtype attributes. -->
<html itemscope itemtype="http://schema.org/Article">
<!-- Place this data between the <head> tags of your website -->
<title>Page Title. Maximum length 60-70 characters</title>
<meta name="description" content="Page description. No longer than 155 characters." />
<!-- Google Authorship and Publisher Markup -->
<link rel="author" href="https://plus.google.com/[Google+_Profile]/posts"/>
<link rel="publisher" href=â€https://plus.google.com/[Google+_Page_Profile]"/>
<!-- Schema.org markup for Google+ -->
<meta itemprop="name" content="The Name or Title Here">
<meta itemprop="description" content="This is the page description">
<meta itemprop="image" content="http://www.example.com/image.jpg">
<!-- Twitter Card data -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@publisher_handle">
<meta name="twitter:title" content="Page Title">
<meta name="twitter:description" content="Page description less than 200 characters">
<meta name="twitter:creator" content="@author_handle">
<!-- Twitter summary card with large image must be at least 280x150px -->
<meta name="twitter:image:src" content="http://www.example.com/image.html">
<!-- Open Graph data -->
<meta property="og:title" content="Title Here" />
<meta property="og:type" content="article" />
<meta property="og:url" content="http://www.example.com/" />
<meta property="og:image" content="http://example.com/image.jpg" />
<meta property="og:description" content="Description Here" />
<meta property="og:site_name" content="Site Name, i.e. Moz" />
<meta property="article:published_time" content="2013-09-17T05:59:00+01:00" />
<meta property="article:modified_time" content="2013-09-16T19:08:47+01:00" />
<meta property="article:section" content="Article Section" />
<meta property="article:tag" content="Article Tag" />
<meta property="fb:admins" content="Facebook numberic ID" />
Firebase 动态链接不会在社交媒体中预览图片
【中文标题】Firebase 动态链接不会在社交媒体中预览图片【英文标题】:Firebase dynamic links aren't previewing pics in social media
【发布时间】:2018-07-19 12:58:52
【问题描述】:
我的 firebase 动态链接不是使用社交元数据生成链接预览 - 在动态链接中,当您为“si”元数据提供链接时,假设在社交媒体中预览图片 - 请参阅 Firebase 文档关于社交媒体的预览图片:https://firebase.google.com/docs/dynamic-links/link-previews
如您所见,我的链接在“si”元数据链接 (&si=http://image.tmdb.org/t/p/w185//kq3ThsAeRNiS2VmFWQtvt3IJ1ab.jpg) 中包含一个有效链接,请参阅完整链接:
https://xe8re.app.goo.gl/?link=http://markatlarge.com/70573&isi=1387216991&ibi=com.markatlarge.BoobTube&si=http://image.tmdb.org/t/p/w185//kq3ThsAeRNiS2VmFWQtvt3IJ1ab.jpg
(动态链接适用于ios应用,如果要进入应用,请在iphone应用上点击)
有什么想法吗?
【问题讨论】:
【参考方案1】:
您的图像低于文档中推荐的分辨率
“图片应至少为 300x200 像素,并且小于 300 KB。”
也许这就是原因
我遇到了另一个问题,它显示的是我的图片的裁剪版本
【讨论】:
以上是关于HTML 社交媒体元标记的主要内容,如果未能解决你的问题,请参考以下文章
如何支持我的 SPA NuxtJS 应用程序的社交媒体共享和预览
元宇宙社交的本质问题爆款场景功能等,媒体采访数字经济专家高泽龙
元宇宙社交的本质问题爆款场景功能等,媒体采访数字经济专家高泽龙
用于社交分享的 Vue 应用程序元标记
Firebase 动态链接不会在社交媒体中预览图片
Android - Google + 上的 Firebase 动态社交元标记链接