5 Replies Latest reply on Apr 15, 2014 7:37 AM by 56068

    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! 
        • 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.
          • Re: Any way to embed a tweet?
            Matt Stone
            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.
            • 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?
              • Re: Any way to embed a tweet?
                Matt Stone

                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.
                • Re: Any way to embed a tweet?
                  Thank you Matt. This is what I resorted to. Thank you everyone for your help.