-
robinberjon amyoleary clancynewyork themarkup So the technically correct answer is the latest embed code you can pull with an API key from the Twitter API gracefully degrades into HTML blockquotes in theory. But if you are running their script, which *mby* the ToS says you have to, it will actually hide deleted tweets...
-
robinberjon amyoleary clancynewyork themarkup At least the last time I checked! But these are all good answers and I'd love to see themarkup's code. And also the "right" way is bullshit for many reasons including the heavyness, invasive tracking and slow execution of the Twitter embed code...
-
robinberjon amyoleary clancynewyork themarkup Especially if you are embedding more then 1 tweet, in which case you have to muck about to make only 1 script call. So, if you're not a newsletter that *has* to prerender a tweet into tables technically legal options are winnowed, so... consult with a lawyer past this point...
-
robinberjon amyoleary clancynewyork themarkup IMO (not legally verified) dropping the script entirely and just having blockquotes is acceptable and then mby ok to add some styling! (my current hobby approach) but if you were ok to prerender for emails because of the restrictions of the platform then...
-
robinberjon amyoleary clancynewyork themarkup There seems to be a good argument that a restricted format like static site generators could have an argument that they need to prerender tweets for similar reasons to emails so maybe you prerender and have it nicely archived in-context?...
-
robinberjon amyoleary clancynewyork themarkup In fact, more than one CMS quietly layers an archival render of tweets under the Twitter script-managed version for many reasons, including performance. This is likely the closest to ToS-ok approach that also supports news site requirements for editorial wholeness...
-
robinberjon amyoleary clancynewyork themarkup Now, there are particular archival cases that one could make to do even more extensive archiving. Look at the Library of Congress! I don't know how all of those work...
-
robinberjon amyoleary clancynewyork themarkup I'm not a lawyer, but for my fun hobby projects I query tweets out of the API, layer and expand with additional related queries and archive the expanded API response. Then I build static styled blockquotes from there and can refresh or regress as needed...
-
robinberjon amyoleary clancynewyork themarkup The better answer is: news site's CMS (or any CMS) are likely quietly treating tweets much smarter than you think, regardless of the ToS implications, and it's worth checking in detail...
-
robinberjon amyoleary clancynewyork themarkup All this is more simple IMO if it is your own tweets. And that's the very very long response I have at this moment, subject to sudden change. Sorry that it's lengthy, but I think about this specific problem a lot!