The metadata on the image shows it was modified on 5/31 and likely created on that date AFTER Floyd's Death
The metadata on the image shows it was modified on 5/31 and likely created on that date AFTER Floyd's Death
>https://cards-dev.twitter.com/validator
If you paste ObamaFoundation status you get a Card Error - INTERNAL ERROR
Still looks uploaded on 5-20-2020
https://www.obama.org/wp-content/uploads/053020_GeorgeFloyd_Protests_Chicago_IL_CD_1588-scaled.jpg
THIS IS RUBY CODE TO HELP BUST THE TWITTER CACHE-BUSTING FEATURE VIA API??
MEANT FOR @JACK?
Once you post to Twitter, it goes into the Twitter Cache and you can't reset it. That's what this code does though.
The code posted would let you use the Twitter API to refresh an image in a tweet.
So it would let him change it from what was the photo back when tweetedโฆ
HOW TO FORCE CACHE PURGE OF TWITTER CARD BOTS
https://stackoverflow.com/questions/28207497/how-to-force-cache-purge-of-twitter-cards-bots
All I know at this point is that code is a method to force the cache to clear essentially.
CODE FOR A CACHE BUSTING BOT
We also need a cache-busting bot in order to update the card periodically. If we want to show a growing number of comments over time, we cannot wait for Twitter to bust the cache once per week. It still won't update instantly, but if a tweet has been floating around for a while it will show an accurate comment count even if it is more than when the tweet went out originally.
Twitter does not expose their cache-busting feature via API, so we had to ping it via browser automation.
This code would "ping the Twitter card cache validation"
Refreshing a Card in a Tweet
Twitter web crawlers re-index the Card tag information on your page roughly every week.
When testing and/or iterating on Cards, it is sometimes helpful to test updates on your timeline. It may be possible to use the following technique to refresh the cache with your most up-to-date changes of your pageโs Card.
Add Card metadata to a page
Tweet URL to that page
Refresh your browser to view the Card contents on your timeline
Change Card metadata on the page
Take the same URL and runs it through
Tweet the new URL
Refresh your browser to view the updates
Additionally, you can create multiple URLs to allow for repeat testing. For example, adding dummy parameters to the end of your URL (http://www.test.com/?x=test1) or a unique hash (http://www.test.com/#test1) will generally not affect the page contents, but will generate a unique URL for each unique value of x.
My Card information now refreshes, but images are not updating. How do I get the images to refresh?/a>
Images referenced in a Card are also cached based on URL. This often causes images to not update when the above Card refresh technique is used.
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.
https://developer.twitter.com/en/docs/tweets/optimize-with-cards/guides/troubleshooting-cards
Maybe this is more about the Hashtag and how Obama Foundation is targeting the youth. The graduates. Making this about George Floyd.