Comments (7)
Where were you getting these errors? Can you post what the error was? Using the Open Graph Testing Tool, do you mean?
from seomatic.
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.
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.
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.
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.
Great, checking out now
from seomatic.
Confirmed, ty
from seomatic.
Related Issues (20)
- Sitemaps issue with multisite
- Enabling robots in devMode/local
- Overriding seomatic.meta.robots value has no effect on <meta> tag (in production environment) HOT 1
- Referrer-Policy should be updated
- Trying to get property 'sourceName' of non-object when clicking breadcrumb in seo content HOT 3
- Turn off x-powered-by: SEOmatic
- turn off Automatic Render Enabled and manually render scripts HOT 1
- Google Analytics showing /actions/seomatic URLs for some reason
- “Internal server error” when piggybacking (in PHP) HOT 2
- Google Tag Manager code ends up in body instead of head HOT 1
- Environment Variables/Aliases not parsed for humans.txt, though proposed in Text Field HOT 1
- Provide data in a structured way on GraphQL endpoint HOT 2
- Can't retrieve (GQL) or save (control panel) humans template HOT 1
- Section Entries Not Populating to Content SEO and Sitemap.xml HOT 2
- Pagination for Sitemaps / Sitemap Indexes HOT 2
- Sitemap Page loads slowly HOT 1
- Seo images don't update mtime when asset settings are changed. HOT 3
- SEO Image Source > render output with overlay image, logo or watermark HOT 5
- Algolia search on docs website is returning 404s HOT 4
- Unknown property error when upgrading to Craft 4 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seomatic.