Any way to embed a tweet? | Community
Skip to main content
April 14, 2014
Solved

Any way to embed a tweet?

  • April 14, 2014
  • 5 replies
  • 2276 views
Hello community,

Is there a way to get around embedding a tweet on an email template? At the moment, the embed code Twitter provides uses Javascript. Here is an example of the code that Twitter generates:

<blockquote class="twitter-tweet" data-cards="hidden" lang="en"><p>When this carpenter accidentally cut off his fingers, he came up with a creative solution: <a href="http://t.co/ycswsDES6U">http://t.co/ycswsDES6U</a> via <a href="https://twitter.com/cnntech">@cnntech</a></p>&mdash; CNN (@CNN) <a href="https://twitter.com/CNN/statuses/455798204714713089">April 14, 2014</a></blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

Any way I can have a live tweet embedded in my email template?

Thank you very much! 
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Matt_Stone2
Caleb is right -- you can't embed scripts in an email, nor should you really want to.

Instead of doing a screenshot, I would recommend just coding out a visually-similar table that you can reuse in your templates. It'll be better for deliverability than an image and you'll get essentially the same result, just with a little more up-front effort.

5 replies

April 14, 2014
Don't believe this is possible due to the limitations of email. The best you could do would include a screenshot of the most recent tweet before you send the email or send them to a landing page from the email where you have the live tweets showing.
Matt_Stone2
Matt_Stone2Accepted solution
Level 9
April 14, 2014
Caleb is right -- you can't embed scripts in an email, nor should you really want to.

Instead of doing a screenshot, I would recommend just coding out a visually-similar table that you can reuse in your templates. It'll be better for deliverability than an image and you'll get essentially the same result, just with a little more up-front effort.
April 14, 2014
Thank you for your answers. Caleb, my first thought was doing screenshots too.

Matt, does your approach involve copying the tweet and pasting it into the table you create? Basically, I'd have to copy the text of the tweet and past it into my template, correct?
Matt_Stone2
Level 9
April 14, 2014
Right.

The most difficult part is just coding it to mimic an embedded tweet, then you just copy and paste your tweet text, the image, URL, etc. Then you can rinse and re-use as many times as you'd like, just repeating the last steps.

A screenshot is easier and will probably be just as effective, but I prefer to code everything I can for emails before I resort to imagery.
April 15, 2014
Thank you Matt. This is what I resorted to. Thank you everyone for your help.