• Resolved Summer

    (@fpmsummer)


    There are a series of different but connected issues, and I’ve been tussling with them since about October, so bear with me here 🙂

    First, the meta field “twitter:creator” seems to be pulling the Twitter acct info from the admin user, not anything set in TSF. I had to remove it in order for that field to go away (the acct was not for the one site in question).

    Next, some sites will embed the large img Twitter card just fine, while others will not, despite having the same TSF settings and WP versions. For the life of me I cannot figure it out. I even got it working on one website, then it stopped working 2 weeks later.

    So I could use a little help in getting the large Twitter card working on the sites it’s not working on, please? 🙂

Viewing 1 replies (of 1 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hi again, Summer! I hope you’re doing well 🙂

    With TSF, every user with the edit_posts capability (Author or higher) will have an “Authorial Info” section appended to their profile-edit page. There, you can set Facebook and Twitter profile links.

    The twitter:creator‘s tag output first tries the post author’s Twitter profile field. If that’s missing, it’ll fall back to the fallback-entry you set on the SEO Settings page. If that’s also missing, the field won’t be outputted.

    Before continuing, please make sure TSF is the only plugin outputting twitter:x metadata. Other plugins and themes may override the tags, adding to the confusing behavior.

    Twitter will select the ‘correct’ image size based on whether the embed is a new Tweet, a reply to a Tweet, a reply to a reply to a Tweet, which device you’re viewing the (reply of the) Tweet from, etc. This can explain why you get inconsistent output.

    Twitter also doesn’t accept every image size and ratio thereof. For more info, please see the (outdated…) docs of summary-large-image and summary.

    For summary-large-image:

    Images for this Card support an aspect ratio of 2:1 with minimum dimensions of 300×157 or maximum of 4096×4096 pixels.

    For summary:

    You should not use a generic image such as your website logo, author photo, or other image that spans multiple pages. Images for this Card support an aspect ratio of 1:1 with minimum dimensions of 144×144 or maximum of 4096×4096 pixels. The image will be cropped to a square on all platforms.

    And, for both:

    Images must be less than 5MB in size. JPG, PNG, WEBP and GIF formats are supported. Only the first frame of an animated GIF will be used. SVG is not supported.

    I hope this helps you debug the behavior! To help with debugging further, please use this tool: https://cards-dev.twitter.com/validator. Cheers 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘Strange problem with Twitter cards and other Twitter data’ is closed to new replies.