小编Fri*_*een的帖子

OG:为不是文章的个人网页输入文章与网站

我正在寻求澄清有关使用og:type article vs website的个人网页,这在技术上不是"文章",但也不代表整个网站.

文档似乎是矛盾的:

来自https://developers.facebook.com/docs/opengraphprotocol/#types

Use article for any URL that represents transient content - such as a
news article, blog post, photo, video, etc. Do not use website for this
purpose. website and blog are designed to represent an entire site, an 
og:type tag with types website or blog should usually only appear on the 
root of a domain.
Run Code Online (Sandbox Code Playgroud)

在这种情况下,文章只应用于"瞬态"内容."瞬态"的定义是"仅持续一小段时间".这句话也隐含地说"网站和博客旨在代表一个完整的网站...(和)通常只应出现在域的根目录上."

编辑:有趣的是,描述类型的同一页面也说:

If your URL is a video, you should set og:type to video.
Run Code Online (Sandbox Code Playgroud)

这本身就与视频相关的引用相矛盾.

然而,回到主题,更高,相同的页面也说:

If your …
Run Code Online (Sandbox Code Playgroud)

facebook facebook-like opengraph facebook-opengraph

26
推荐指数
2
解决办法
1万
查看次数