Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change twitter thumb url when image changes #383

Open
wdwatkins opened this issue Jun 20, 2018 · 0 comments
Open

change twitter thumb url when image changes #383

wdwatkins opened this issue Jun 20, 2018 · 0 comments

Comments

@wdwatkins
Copy link
Contributor

wdwatkins commented Jun 20, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant