多个相同的 og:title 可以吗?
我们有一个婚纱摄影网站,我正在将 Facebook Like 按钮添加到各个图像页面。关于 Facebook 和 og:title 标签,如果图库中每张图像的 og:title 标签都相同,是否会有缺点?示例:“约翰和简的婚礼”或者应该是“约翰和简的婚礼 - image1.jpg”?我只是想确保,如果有人喜欢同一个图库中的多张图片,并且每张图片都使用相同的标题,那么 Facebook 会正确对待每张图片,还是每张图片都需要是唯一的?图像文件名并不总是很漂亮,例如img000014.jpg,所以如果可以的话我想避免使用它们。
We have a wedding photography site that I am adding the Facebook Like button to the individual image pages. Regarding Facebook and the og:title tag, is there a downside if the og:title tag is the same for each image in the gallery? Example: "John and Jane's Wedding" Or should it be "John and Jane's Wedding - image1.jpg"? I just want to make sure that if someone likes multiple images from the one gallery, that Facebook will treat each like correctly if the same title is used for each one, or do they each need to be unique? Image file names are not always pretty, such as img000014.jpg, so I would like to avoid using them if it is ok.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不同的内容(在您的例子中是图像)具有相同的标题,这可能会让用户感到困惑,但从技术角度来看,这没有任何问题。
只要这些图像具有不同的 URL,它们就会被视为 Facebook OpenGraph 的不同对象(因为对象是通过 URL 而不是标题来标识的)。
It may be confusing to users that different content (images in your case) have same title, but from technical perspective there is nothing wrong with it.
As long as those images have different URL's they be treated as different objects to Facebook OpenGraph (since objects are identified by URL's not titles).