SOLVED

Re: Any way to embed a tweet?

Go to solution
Anonymous
Not applicable

Any way to embed a tweet?

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! 
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Matt_Stone2
Level 9

Re: Any way to embed a tweet?

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.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Re: Any way to embed a tweet?

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
Level 9

Re: Any way to embed a tweet?

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.
Anonymous
Not applicable

Re: Any way to embed a tweet?

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

Re: Any way to embed a tweet?

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.
Anonymous
Not applicable

Re: Any way to embed a tweet?

Thank you Matt. This is what I resorted to. Thank you everyone for your help.