I am using the metatag open graph module.
I want the og:title metatag should have the value page title metatag.

for this I'm using the [metatag:title] token in the open graph content title field. But When I see the source code of the page, I didn't see the og:title metatag in the source because I think the token returns empty string.

Is there any specific method for using the metatag tokens or it is a bug?

Comments

hmdnawaz created an issue. See original summary.

DamienMcKenna’s picture

I believe there's a bug there that I've never fully worked through. Does it work if you instead do e.g. [node:metatag:title].

hmdnawaz’s picture

Yes this one is working. So should I use node: as a prefix for every metatag token? like for example for metatag description [node:metatag:description] will be used instead of [metatag:description]?

DamienMcKenna’s picture

Yes, as a workaround until the underlying problem can be fixed.

DamienMcKenna’s picture

Title: Metatgs tokens are not working » Metatgs tokens do not work as expected
Version: 7.x-1.17 » 7.x-1.x-dev
Component: Open Graph » User interface
DamienMcKenna’s picture

marcelovani’s picture

Title: Metatgs tokens do not work as expected » Metatags tokens do not work as expected
Helianthropy’s picture

I recently came across this issue in trying to use cascading metatags. Using the "node" prefix in the metatag token resolved the issue for me. I thought it might be helpful to include that tip in the Tokens browser, though I see that the following message already appears: "Generated by the Metatag module, may not be used to fill in other meta tags." Is that message related to this issue?