nextjs - 在社交媒体上分享链接时元标题和描述不起作用

问题描述 投票:0回答:1

标题和描述像这里一样设置,但我是从 api 中提取的。

这就是我在 Discord 或任何其他社交媒体上分享链接时标题和描述的样子

网站:https://istanbulfood.be/


我使用的下一个搜索引擎优化代码:

<NextSeo
  title={title}
  description={description}
  canonical={`${siteSettings.author.websiteUrl}${path}`}
  openGraph={{
    url: `${siteSettings.author.websiteUrl}/${path}`,
    title,
    description,
    images: [
      {
        url: '/assets/images/logo.png',
        width: 800,
        height: 600,
        alt: 'İstanbulfood',
      },
      {
        url: '/assets/images/logo.png',
        width: 900,
        height: 800,
        alt: 'İstanbulfood',
      },
    ],
  }}
/>
reactjs next.js meta-tags
1个回答
0
投票

您需要在站点标记中使用open graph tags才能在社交媒体中获得丰富的链接支持。


openGraph
道具里面,你可以尝试添加另一个属性
type: 'website'
吗?也可以在 openGraph 中使用
full url
作为您的
images
。请访问这个链接来测试你的富链接

© www.soinside.com 2019 - 2024. All rights reserved.