Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
677 views
in Technique[技术] by (71.8m points)

nuxt.js - Open Graph link sharing does not work on only slack message box

I have a dynamic open graph tag is a meta tag in the nuxt.js app. Its preview is working great in Twitter, Facebook, Linkedin, skype, telegram, ... but it does not work in slack only.

head() {
    return {
      title: TITLE,
      meta: [
        {
          hid: 'twitter:card',
          name: 'twitter:card',
          content: 'summary',
        },
        {
          hid: 'twitter:title',
          name: 'twitter:title',
          content: this.job.title,
        },
        {
          hid: 'twitter:description',
          name: 'twitter:description',
          content:
            this.job.description.length > 100
              ? this.job.description.substr(0, 100)
              : this.job.description,
        },
        {
          hid: 'twitter:image',
          name: 'twitter:image',
          content: this.job.companyLogoThumb,
        },
        {
          hid: 'og:title',
          property: 'og:title',
          content: this.job.title,
        },
        {
          hid: 'og:image',
          property: 'og:image',
          content: this.job.companyLogoThumb,
        },
        {
          hid: 'og:type',
          property: 'og:type',
          content: 'website',
        },
        {
          hid: 'og:description',
          property: 'og:description',
          content:
            this.job.description.length > 100
              ? this.job.description.substr(0, 100)
              : this.job.description,
        },
      ],
    }

It looks good for most medias but only slack is not working.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...