大网数据广告活动
网站运营与故障问答

Same og:title and title on a page

· 52CE 我爱测

Does it make sense to render og:title and <title> that have the same value on a page? Facebook & co take the <title> tag as fallback.

问题原文

原帖链接 · StatiX · CC BY-SA 4.0

Does it make sense to render og:title and <title> that have the same value on a page?

Facebook & co take the <title> tag as fallback.

已采纳解答

原帖链接 · Maximillian Laumeister · CC BY-SA 4.0

It seems counterintuitive to me, but if we take IMDB as an example of proper implementation, we can see that they use the same value for the og:title and <title> tags.

To see for yourself, view source on an example movie like this one:
https://www.imdb.com/title/tt1049413/

then use Ctrl+f and you will see the following:

og:title - "Up (2009) - IMDb"

<title> - "Up (2009) - IMDb"

Interestingly the open graph protocol website uses IMDb as an example but shows different markup than what IMDb actually uses. So it's possible that IMDb has changed their markup recently.

In any case, if it were wrong to the point that it breaks things then IMDb wouldn't be doing it, so I think it's safe to say you will be fine if you use the same value for your og:title and <title> tags.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2019-03-03)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。