Events Made Easy Forums Bug fixed or feature request implemented meta tag twitter:card is wrong

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #61808
    Anonymous
    Inactive

    Hi Franky,

    eme_functions.php contains this line:
    <meta name="twitter:card" content="#_EVENTIMAGEURL" />

    This is wrong and it breaks Twitter cards. The twitter:card value chooses one of a few predefined card formats, and the allowed values are “summary”, “summary_large_image”, “app”, or “player”. See https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started

    I got it to work by removing that line and adding my desired value in the eme_event_html_headers_format option. I also added twitter:site and twitter:url – don’t know if these are needed for it to succeed as well. You could generate twitter:url in eme_functions.php but twitter:site has to be user-supplied.

    This works: https://twitter.com/Radentscheid_Bi/status/1308960326751342592

    I think you can’t know which value the user wants, you might offer the above choices as options in the plugin settings or simply not output that line

    #61849
    Franky
    Keymaster

    Hi,
    thanks for this (and sorry for the late reply, it seems this topic got stuck in “pending for approval”).
    If I replace twitter:card with twitter:image, then I think that should be ok, no?
    But based on the fact, shouldn’t I just use twitter:card “summary” then?

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.
Scroll to Top