问题原文
原帖链接 · 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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
