Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-18029

Open Graph data for CiviEvents not scraping properly in WordPress

    Details

    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      When Event pages are shared on Facebook from a Wordpress install, the preview text does not display properly. This appears to be caused by the Open Graph data being scraped from the 'civicrm' basepage rather than the specific event page being linked to.

      The problem can be seen by using the Facebook scraping tool, on the CiviCRM demo sites, which show that only WP seems to have this problem.

      If the WP demo event page is scraped, the Open Graph title returned will match that of the basepage rather than the title of the event page.

      og:title CiviCRM | CiviCRM Sandbox on WordPress

      Performing the same task on the Drupal or Joomla demo pages produces the expected OG title,

      og:title Rain-forest Cup Youth Soccer Tournament | CiviCRM Sandbox on Drupal

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              spontarelliam Adam Spontarelli
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: