Embed tweets?

Seamus

Ambassador
Ambassador
FOTCM Member
What do y'all think about adding a shortcode that allows us to embed tweets, and/or facebook posts? I was thinking it might be a useful feature since its seems like we're doing a fair bit of tweeting around here and because alot happens on twitter and direct embedding might be easier than screenshots and links. I found this SMF plugin/mod:

http://custom.simplemachines.org/mods/index.php?mod=3837

It allows you to use the tweet's id number to embed like so:

[tweet]824062114541113344[/tweet]

Twitter also gives you "embed" code in blockquotes like this:

Code:
<blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr">.<a href="https://twitter.com/realDonaldTrump">@realDonaldTrump</a> please reroute pipelines to protect important water sources &amp; the environment <a href="https://twitter.com/hashtag/realleadership?src=hash">#realleadership</a> <a href="https://twitter.com/hashtag/listentothepeople?src=hash">#listentothepeople</a> <a href="https://t.co/FUIRRLNss7">pic.twitter.com/FUIRRLNss7</a></p>&mdash; Seamas (@seamascass) <a href="https://twitter.com/seamascass/status/824062114541113344">January 25, 2017</a></blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

but when I bracket it with the embed brackets the forum just shows the HTML:

<blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr">.<a href="https://twitter.com/realDonaldTrump">@realDonaldTrump</a> please reroute pipelines to protect important water sources & the environment <a href="https://twitter.com/hashtag/realleadership?src=hash">#realleadership</a> <a href="https://twitter.com/hashtag/listentothepeople?src=hash">#listentothepeople</a> <a href="https://t.co/FUIRRLNss7">pic.twitter.com/FUIRRLNss7</a></p>— Seamas (@seamascass) <a href="https://twitter.com/seamascass/status/824062114541113344">January 25, 2017</a></blockquote> <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>


Facebook provides similar embed code for its posts. Maybe there's a way to extend the functionality of the existing embed brackets?

Does anyone else think a feature like this might be useful? It might just make the forum noisier, I'm not sure...
 
Seamas said:
(...) Twitter also gives you "embed" code in blockquotes like this:

Code:
<blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr">.<a href="https://twitter.com/realDonaldTrump">@realDonaldTrump</a> please reroute pipelines to protect important water sources &amp; the environment <a href="https://twitter.com/hashtag/realleadership?src=hash">#realleadership</a> <a href="https://twitter.com/hashtag/listentothepeople?src=hash">#listentothepeople</a> <a href="https://t.co/FUIRRLNss7">pic.twitter.com/FUIRRLNss7</a></p>&mdash; Seamas (@seamascass) <a href="https://twitter.com/seamascass/status/824062114541113344">January 25, 2017</a></blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

but when I bracket it with the embed brackets the forum just shows the HTML:

<blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr">.<a href="https://twitter.com/realDonaldTrump">@realDonaldTrump</a> please reroute pipelines to protect important water sources & the environment <a href="https://twitter.com/hashtag/realleadership?src=hash">#realleadership</a> <a href="https://twitter.com/hashtag/listentothepeople?src=hash">#listentothepeople</a> <a href="https://t.co/FUIRRLNss7">pic.twitter.com/FUIRRLNss7</a></p>— Seamas (@seamascass) <a href="https://twitter.com/seamascass/status/824062114541113344">January 25, 2017</a></blockquote> <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
(...)

I think Seamas was referring to embedding tweets and facebook posts but I've just tried to embed a video found on Twitter and encountered the same problem. I did use the 'embed video' link provided by Twitter and not just the Tweet URL.

I take it this functionality hasn't been expanded and it's only possible to embed YouTube videos in forum posts?
 
I think just directly linking to tweets is simple enough. It's useful for example to embed stuff on SOTT, but on the forum I don't think it's a big deal.

Ant22 said:
I take it this functionality hasn't been expanded and it's only possible to embed YouTube videos in forum posts?

Yes, that's correct.
 
Beau said:
I think just directly linking to tweets is simple enough. It's useful for example to embed stuff on SOTT, but on the forum I don't think it's a big deal.

Ant22 said:
I take it this functionality hasn't been expanded and it's only possible to embed YouTube videos in forum posts?

Yes, that's correct.

Great, thanks for the answer Beau :)
 
Back
Top Bottom