GithubHelp home page GithubHelp logo

Og:image:width about svelte-meta-tags HOT 5 CLOSED

oekazuma avatar oekazuma commented on May 26, 2024
Og:image:width

from svelte-meta-tags.

Comments (5)

bitdom8 avatar bitdom8 commented on May 26, 2024 1

Understood now, facebook caches that is why need to remove cookies and also share it on my personal profile, make it work. Thanks @oekazuma

from svelte-meta-tags.

oekazuma avatar oekazuma commented on May 26, 2024

I think you can already do that.
Here's an example, check it out.
https://github.com/oekazuma/svelte-meta-tags#basic

Example in REPL

from svelte-meta-tags.

bitdom8 avatar bitdom8 commented on May 26, 2024

Thanks @oekazuma . Using facebook debug tool it states:
The provided 'og:image' properties are not yet available because new images are processed asynchronously. To ensure shares of new URLs include an image, specify the dimensions using 'og:image:width' and 'og:image:height' tags.

from svelte-meta-tags.

oekazuma avatar oekazuma commented on May 26, 2024

I've never used FaceBook debug tool, so I don't know the details, but what kind of code causes this? Please show me the specific code.

from svelte-meta-tags.

bitdom8 avatar bitdom8 commented on May 26, 2024

This is the code I'm using below. Strangely enough, debug tool doesn't show, but right now the post I shared has image but zoomed in:


<MetaTags
  openGraph={{
    type: 'website',
    url: 'https://www.example.com/page',
    title: 'Open Graph Title',
    description: 'Open Graph Description',
    images: [
      {
        url: 'https://ssl.gstatic.com/ui/v1/icons/mail/rfr/logo_gmail_lockup_dark_2x_r2.png',
        width: 600,
        height: 314,
        alt: 'Og Image Alt'
      },
      {
        url: 'https://ssl.gstatic.com/ui/v1/icons/mail/rfr/logo_gmail_lockup_dark_2x_r2.png',
        width: 600,
        height: 314,
        alt: 'Og Image Alt 2'
      }
    ]
  }}
/>

from svelte-meta-tags.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.