DEV Community

Discussion on: How dev.to dynamically generates social images

Collapse
 
absoftware profile image
Ariel Bogdziewicz

I'm testing DEV.TO now and social images doesn't work for my posts but it works for others. Why?!

Collapse
 
ben profile image
Ben Halpern

Probably an issue with _the first time you load it, it sometimes doesn't load fast enough and Twitter, etc. time out within milliseconds.

If you go to cards-dev.twitter.com/validator and try a couple times (helped by adding gobbledeegook params to cache-bust)...

Collapse
 
absoftware profile image
Ariel Bogdziewicz

Oh, thanks for the response. It works for Twitter and Facebook somehow. However Slack is totally not working for my posts. Other users' posts are handled easily in Slack. Is something missing?

Thread Thread
 
ben profile image
Ben Halpern

Hmmmmm I'm not sure... My best guess is a caching issue, like once Slack has cached the scenario where it doesn't think there's a social image it keeps rolling with that?

Thread Thread
 
absoftware profile image
Ariel Bogdziewicz

Thank you for your time. It started to work because of unknown reason for me. Maybe I need to wait a little bit more after publishing.