Show embedded tweets

  • 3
  • Idea
  • Updated 4 years ago
A lot of sites are using Twitter's embed functionality that displays as a blockquote until the Javascript that is included on the sites convert it to display properly (show avatars and shared images).  Would it be possible to include the JS to do this for tweets embedded into stories on NewsBlur?
Photo of Drew

Drew

  • 18 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 3
Photo of Samuel Clay

Samuel Clay, Official Rep

  • 6514 Posts
  • 1474 Reply Likes
I believe the JS is embedded in the story and is actually stripped out. Can you give me an example newsblur.com/site url?
Photo of Drew

Drew

  • 18 Posts
  • 0 Reply Likes
Samuel,

I'm not sure what you're looking for, but I did some checking and here is what I found.  An article on Vox.com (http://www.vox.com/2015/8/11/9130221/ferguson-pepper-spray) has a bunch of embedded tweets and have this JS file included:
<script src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
I took the contents of the script and executed it on the article in NewsBlur and the blockquotes all turned into embedded tweets.  You should be able to add this line near the bottom of your page after the articles are loaded to do the trick.

Thanks for all the great work you do!