We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 51270
    • 4 Posts
    Hi

    I have been trying to add Open Graph tags to one of my client's websites and have successfully implemented them to show in Google+, but for some reason, Facebook isn't liking how I have it set up.

    I have created a Chunk with the following code:

    <meta name="twitter:card" content="summary" />
    <meta name="twitter:url" property="og:url" content="[[!++site_url]][[*uri]]" />
    <meta name="twitter:title" property="og:title" content="[[*pagetitle]]" />
    <meta name="twitter:creator" content="[[*createdby:userinfo=`fullname`]]">
    <meta name="twitter:image" property="og:image" content="[[!++site_url]][[*socialImage]]" />
    <meta name="twitter:description" property="og:description" content="[[*socialDescription:empty=`[[*introtext]]`]]" />

    And then referenced it in the Blog Article Template.

    Having a look at the source code it seems to show okay, and like I mentioned, it works perfectly on Google+.

    Does anyone have any experience with getting OG to work with MODx?

    Any help would be appreciated.

    Thanks!
    Russ
      • 48586
      • 78 Posts
      Have you tried doing a scrape for data on Facebook to pull the latest? I usually have to do this every time I add the open graph tags to use:

      https://developers.facebook.com/tools/debug/