This content originally appeared on Bram.us and was authored by Bramus!
Check this tweet by Chris Johnson: tweet with a link whose preview image shows the actual number of retweets and likes for that tweet.
A meta tweet.https://t.co/lvaYUszJaE
— Chris Johnson (@defaced) January 25, 2022
Cool!
In a later tweet, Chris shares how it’s done:
How this works!
👷♀️ A @Cloudflare worker responds to requests from Twitter with HTML inc. social meta.
🎨 The image in that meta points to a Cloud Function which generates a dynamic image using Puppeteer.
🪄 A scheduled Cloud Function runs some magic to invalidate Twitter's cache.— Chris Johnson (@defaced) January 27, 2022
The image should update every five to ten minutes.
This content originally appeared on Bram.us and was authored by Bramus!
Bramus! | Sciencx (2022-03-06T17:39:22+00:00) A meta Tweet. Retrieved from https://www.scien.cx/2022/03/06/a-meta-tweet/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.