Skip to content
This repository was archived by the owner on Jan 2, 2026. It is now read-only.
This repository was archived by the owner on Jan 2, 2026. It is now read-only.

change twitter thumb url when image changes #383

Description

@wdwatkins

https://developer.twitter.com/en/docs/tweets/optimize-with-cards/guides/troubleshooting-cards.html

Seerefreshing a card in a Tweet on how to make the twitter crawler refresh thumbnails.

To work-around this issue, you can add an extra parameter at the end of your image URL so that the Twitterbot treats the image as a unique URL and re-fetches the image.

For example:
<meta name="twitter:image" content="http://example.com/myimage.jpg?4362984378"></meta>

This could be automated in vizlab by adding a variable to the template that is filled with a random number to create a "new" thumb url. Could maybe do this based on a hash or timestamp of the image file, or just regenerate it each time.

Probably worth looking into if this applies for other platforms e.g. facebook that probably have a similar crawler setup.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions