People post tweets in quotes or just link to them directly quite a bit, especially in newsy threads. It would be cool if they could just be embedded directly, like YouTube. If a users posts a link to a tweet like so:
Twitter has simple embedding markup Vanilla could use that looks like this:
<blockquote class="twitter-tweet">
<p>Limiting the sim city beta to one hour sessions is fucking evil.</p>
— cwgabriel (@cwgabriel) <a href="https://twitter.com/cwgabriel/status/295332059986145280">January 27, 2013</a>
</blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
Or you can use their JSON api to get the tweet like this:
https://api.twitter.com/1/statuses/oembed.json?id=295332059986145280&omit_script=true.
Which makes an iframe that looks like this:
Widget.js accommodates for desktop and mobile browsers, and is responsive to it's container. There's more stuff about it
here.
Posts
Doesn't work. What am I missing?
Origin: Galedrid - Nintendo: Galedrid/3222-6858-1045
Blizzard: Galedrid#1367 - FFXIV: Galedrid Kingshand
it may help to try clearing your cache?
EDIT: yeah there's some weirdness with it. Like...when I first post, it just shows the link, if I reload it shows the tweet.
If I edit a post with the tweet in it, it just shows up as a link again when I save the edit, but if I reload again, it will show the tweet.
Origin: Galedrid - Nintendo: Galedrid/3222-6858-1045
Blizzard: Galedrid#1367 - FFXIV: Galedrid Kingshand
Origin: Galedrid - Nintendo: Galedrid/3222-6858-1045
Blizzard: Galedrid#1367 - FFXIV: Galedrid Kingshand
dunno if there's a way to not have it autoplay
Obviously this is working as intended all around, just wanted to give a heads-up.