Giter Club home page Giter Club logo

Comments (7)

khalwat avatar khalwat commented on May 24, 2024

Where were you getting these errors? Can you post what the error was? Using the Open Graph Testing Tool, do you mean?

from seomatic.

sg-modlab avatar sg-modlab commented on May 24, 2024

Template rendering error. Testing tool mentioned I had no Facebook ID set for open graph which was my lead to try to put one.

Sent from my iPhone

On Dec 28, 2015, at 10:51 PM, khalwat [email protected] wrote:

Where were you getting these errors? Can you post what the error was? Using the Open Graph Testing Tool, do you mean?


Reply to this email directly or view it on GitHub.

from seomatic.

khalwat avatar khalwat commented on May 24, 2024

Forgive me, I'm trying to reproduce the error so I can fix it. I put this in my template:

{% set seomaticMeta = { 
    seoTitle: "This is the default global title of the site pages.",
    seoDescription: "This is the default global natural language description of the content on the site pages.",
    seoKeywords: "This is the default global list of comma-separated key words that are relevant to the content on the site pages.",
    seoImage: "",
    canonicalUrl: "http://nystudio107.dev/",
    twitter: { 
        card: "summary",
        site: "@nystudio107",
        title: "This is the default global title of the site pages. | nystudio107",
        description: "This is the default global natural language description of the content on the site pages.",
        image: ""
    },
    og: { 
        type: "website",
        locale: "en",
        url: "http://nystudio107.dev/admin/seomatic/social/en",
        title: "This is the default global title of the site pages. | nystudio107",
        description: "This is the default global natural language description of the content on the site pages.",
        image: "",
        site_name: "nystudio107",
        see_also: ["https://twitter.com/nystudio107"]
    }
} %}

...and made sure that the Facebook Profile ID field in SEOmatic's Social Media settings is blank. I didn't get a template error... can you post the template error you were getting, or the steps to reproduce?

from seomatic.

sg-modlab avatar sg-modlab commented on May 24, 2024

This is what I used on our blog following the docs

{% set seomaticMeta = { 
    seoTitle: "Some Title",
    seoDescription: entry.summary,
    seoKeywords: "Some,Key,Words",
    seoImage: seomaticMeta.seoImage,
    canonicalUrl: entry.url,
    twitter: { 
        card: seomaticMeta.twitter.card,
        site: seomaticMeta.twitter.card,
        creator: seomaticMeta.twitter.creator,
        title: "Some Title",
        description: entry.summary,
        image: seomaticMeta.twitter.image
    },
    og: { 
        type: seomaticMeta.og.type,
        locale: seomaticMeta.og.locale,
        url: entry.url,
        title: "Some Title",
        description: entry.summary,
        image: seomaticMeta.og.image,
        site_name: seomaticMeta.og.site_name,
        see_also: seomaticMeta.og.see_also
    }
} %}

from seomatic.

khalwat avatar khalwat commented on May 24, 2024

So the issue here was that I wasn't filling in the og array if you had no Facebook Profile ID set. Which is probably not right, because as you note, you can use the og: tags even without a Facebook Profile ID set (though it's better if it is set).

I pushed a fix for you:

https://github.com/khalwat/seomatic

from seomatic.

sg-modlab avatar sg-modlab commented on May 24, 2024

Great, checking out now

from seomatic.

sg-modlab avatar sg-modlab commented on May 24, 2024

Confirmed, ty

from seomatic.

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.