Tech Note: Embedded Tweets in Comments and Pages

New Twitter integration features
LGF • Views: 28,378

We have some new features to announce, designed to make it much simpler to place embedded tweets from Twitter in comments and LGF Pages.

All you have to do to insert an embedded tweet is paste in the URL of the tweet’s ‘Details’ page at Twitter. For example, here’s the page for my tweet about the previous article.

You get to these individual tweet pages at Twitter by clicking the time/date on any tweet, or by expanding it (by clicking inside it) and then clicking the ‘Details’ link.

When your comment or Page is posted, the URL of the tweet will be automatically transformed by the LGF Blog Engine (through the magic of regular expressions and Twitter’s oEmbed API) into the HTML code that shows the full text of the tweet. This HTML code can then be further transformed into the actual Twitter-formatted embedded tweet, with links for following, replying, retweeting, etc.

Unfortunately, that final step can only happen at page load time; the Twitter API doesn’t have a method of rendering the embedded tweet dynamically yet. This means that if you post a comment through our Ajax system, you won’t see the final Twitter-formatted tweet — but you will see the full text of the tweet with a credit line and links to the author, so it’s still useful. You’ll see the final embedded tweet the next time you reload the entire page.

For LGF Pages authors, there’s another nice feature. When you use the LGF Pages bookmarklet on any Twitter details page, the Pages posting form will open up with the code for the embedded tweet already inserted in the editing box — you don’t even have to copy or paste anything.

Jump to bottom

28 comments

1 Interesting Times  Sat, Mar 3, 2012 4:09:14pm

Just want to point out you don't even need to click and open the tweet at all - if you have the new Twitter layout, just hover over the tweet as it appears in your timelime, right-click the word "Open", then choose "copy link" (or however else your browser of choice phrases it), and paste it here:

2 allegro  Sat, Mar 3, 2012 4:11:58pm

re: #1 Interesting Times

Upding for the tweet sentiment. I don't even unnerstan the rest.

3 Lidane  Sat, Mar 3, 2012 4:12:39pm

Could someone please remind the writers at TPM that Rush didn't actually apologize?

4 What, me worry?  Sat, Mar 3, 2012 4:13:50pm

Cool beans.

5 researchok  Sat, Mar 3, 2012 4:22:49pm

To the Hamster in Charge:

In attempting to post a link, I received the following message for the past little while:

The website encountered an error while retrieving [Link: littlegreenfootballs.com...] It may be down for maintenance or configured incorrectly.

FYI

6 Charles Johnson  Sat, Mar 3, 2012 4:31:36pm

re: #5 researchok

To the Hamster in Charge:

In attempting to post a link, I received the following message for the past little while:

FYI

There's an extraneous period at the end of that URL...

7 researchok  Sat, Mar 3, 2012 4:33:09pm

re: #6 Charles Johnson

re: #6 Charles Johnson

Different page, same message

8 jaunte  Sat, Mar 3, 2012 4:35:15pm
9 Dark_Falcon  Sat, Mar 3, 2012 4:41:05pm

He's lying. He'll be the only person who can embedd tweets and he'll use socks to pretend they're from other people, all to cover up the FAILURE OF HIS BLOG!!1 Go eat a bag of Cheetoes, CHUCK!!!111

/Stalker Blog

[waves to the Stalkers]

10 researchok  Sat, Mar 3, 2012 4:43:32pm

re: #9 Dark_Falcon

I'm no great fan of Obamacare, but when I see stuff like that, I wonder if easy access to mental health care is such a bad idea.

11 researchok  Sat, Mar 3, 2012 4:49:09pm

Link posting works.

The cosmos are back in alignment.

12 goddamnedfrank  Sat, Mar 3, 2012 4:50:17pm
A married man and father of three children was arrested Thursday on charges of child pornography and illegal gun possession after Internet task force police raided his home and computers. Donald Ratcliff, 60, a Professor of Christian Education at Wheaton College in Illinois, and a Southern Baptist pastor, had bail set at $750,000, and was instructed to have no contact with anyone under 18, and not to use any computer.

The gays probably caused this, in conjunction with loose women on the Pill and poor people getting heath care they don't deserve. The moral decadence of our society clearly caused this upstanding Christian minister to hoard child porn and illegal guns. Such a tragedy.

13 researchok  Sat, Mar 3, 2012 4:52:14pm

It was but a brief respite...

//

Down again

14 Charles Johnson  Sat, Mar 3, 2012 4:54:01pm

Fixed it.

15 Renaissance_Man  Sat, Mar 3, 2012 4:56:19pm

re: #10 researchok

I'm no great fan of Obamacare, but when I see stuff like that, I wonder if easy access to mental health care is such a bad idea.

I'm no great fan of Obamacare either.

Twenty years, it's been, since universal health care was first put forward by Bush I's administration and shown to be effective not only in reducing costs but also providing better health care. Twenty lost years, an entire generation of Americans who should have grown up with the US government doing its job. And a golden opportunity to right that wrong was lost, mostly by a President too timid to seize history. Twenty more years it will be now, another generation having to put up with substandard care and wasted money, while telling themselves that it's somehow better because that's what spokespeople for megacorporations tell them.

That was probably too early for a sudden rant. It's been a long day of frustrations with the human costs of the US health care system.

16 jaunte  Sat, Mar 3, 2012 4:57:41pm

HotAir's Ed Morrissey continues to spread disinformation about Sandra Fluke and the issue of coverage of contraception in privately paid insurance policies:

I think Rush did the right thing in apologizing to Fluke. However, let’s keep in mind that it was Fluke who made her sexual activity a matter of national political debate by insisting that the government pass laws and regulations forcing employers and insurers to provide her free contraception, and apparently as much as she and others demand. It’s Republicans who believe that contraception should remain a private affair, and that employers and insurers should be free to decide whether to cover contraception for their employees and customers or not. Democrats used Fluke to demand that those choices be stripped from private enterprises and instead be forced by the executive branch to entirely subsidize contraception.

17 Dark_Falcon  Sat, Mar 3, 2012 4:58:23pm

re: #12 goddamnedfrank

The gays probably caused this, in conjunction with loose women on the Pill and poor people getting heath care they don't deserve. The moral decadence of our society clearly caused this upstanding Christian minister to hoard child porn and illegal guns. Such a tragedy.

They breed wingnuts in Wheaton, and its not easy to grow up gay there (one of my former co-workers at Cingular was gay and grew up there). But this shithead takes the cake.

18 Interesting Times  Sat, Mar 3, 2012 4:58:40pm

Speaking of Twitter, when I followed Sandra Fluke a couple of days ago, she was hovering around the 2K followers mark. Now, she's over 20K. Tenfold increase in followers in just 2 days? Rightwing-intimidation-and-silencing FAIL :P

19 researchok  Sat, Mar 3, 2012 5:01:36pm

re: #14 Charles Johnson

We don't need no Zuckerman around here.

20 wrenchwench  Sat, Mar 3, 2012 5:02:13pm

re: #18 Interesting Times

Speaking of Twitter, when I followed Sandra Fluke a couple of days ago, she was hovering around the 2K followers mark. Now, she's over 20K. Tenfold increase in followers in just 2 days? Rightwing-intimidation-and-silencing FAIL :P

I'm one of 'em.

21 Gus  Sat, Mar 3, 2012 5:03:38pm

Carbonite banner on Rush's site is gone.

22 ProMayaLiberal  Sat, Mar 3, 2012 5:03:40pm

I got a follow request from Gary Bohn. Is he one of the stalkers?

23 sattv4u2  Sat, Mar 3, 2012 5:05:41pm

re: #9 Dark_Falcon

/Stalker Blog

[waves to the Stalkers]

You're stalking the stalkers to see if they're stalking!?!?
/

24 Dark_Falcon  Sat, Mar 3, 2012 5:06:29pm

re: #23 sattv4u2

You're stalking the stalkers to see if they're stalking!?!?
/

No, I have not visited their site today.

25 researchok  Sat, Mar 3, 2012 5:06:41pm

re: #15 Renaissance_Man

I'm all for health care reform, but I really believe it needs to phased in, work out the kinks, deal with unforeseen consequences and so on.

Another thing- I do not believe there can be real health care reform without lobby reform.

If lobby issues are not dealt with, reform will go up in smoke. Can you imagine super pacs centered around the health industry?

26 sattv4u2  Sat, Mar 3, 2012 5:10:41pm

re: #24 Dark_Falcon

No, I have not visited their site today.

Thats ZACCLY what a stalker would say!!

/

27 Hector1980  Sun, Mar 4, 2012 3:27:06am

Charles, is there any way to have non-Flash videos embedded in your posts, when those are available? For example, both the Sandra Fluke testimony and Rachel Maddow videos you posted here can be seen on the iPad in their respective sites, but here I got the missing plug in warning.

28 Charles Johnson  Sun, Mar 4, 2012 1:26:11pm

re: #27 Hector1980

Charles, is there any way to have non-Flash videos embedded in your posts, when those are available? For example, both the Sandra Fluke testimony and Rachel Maddow videos you posted here can be seen on the iPad in their respective sites, but here I got the missing plug in warning.

Unfortunately, nothing I can do about that. MSNBC and C-SPAN only supply links to their old-style Flash embedded videos. Hopefully, they'll update their sharing options soon to include IFRAME-based HTML video.


This article has been archived.
Comments are closed.

Jump to top

Create a PageThis is the LGF Pages posting bookmarklet. To use it, drag this button to your browser's bookmark bar, and title it 'LGF Pages' (or whatever you like). Then browse to a site you want to post, select some text on the page to use for a quote, click the bookmarklet, and the Pages posting window will appear with the title, text, and any embedded video or audio files already filled in, ready to go.
Or... you can just click this button to open the Pages posting window right away.
Last updated: 2016-01-01 10:29 am PST
LGF User's Guide RSS Feeds Tweet

Help support Little Green Footballs!

Subscribe now for ad-free access!Register and sign in to a free LGF account before subscribing, and your ad-free access will be automatically enabled.

Donate with
PayPal
Square Cash Shop at amazon
as an LGF Associate!
Recent PagesClick to refresh
Conor Matthews - BalloonsStream/download "Balloons": conormatthews.lnk.to instagram.comtwitter.comfacebook.com
Thanos
3 hours, 20 minutes ago
Views: 59 • Comments: 0 • Rating: 0
Tweets: 0 • Share to Facebook
Orville Peck - Summertime (Official Video) Official video for "Summertime" by Orville Peck. Listen & Download “Summertime” by Orville Peck out now: orvillepeck.lnk.to Amazon - orvillepeck.lnk.toApple Music - orvillepeck.lnk.toiTunes - orvillepeck.lnk.toSpotify - orvillepeck.lnk.toYouTube Music - orvillepeck.lnk.to Follow Orville PeckFacebook - facebook.comInstagram - instagram.comTwitter - @orvillepeck ...
Thanos
7 hours, 9 minutes ago
Views: 97 • Comments: 0 • Rating: 0
Tweets: 1 • Share to Facebook
The Magnetic Fields - Kraftwerk in a Blackout (Official Video) The Magnetic Fields' "Kraftwerk in a Blackout," from 'Quickies,' due in May on Nonesuch Records. Pre-order 'Quickies' to download the track now: smarturl.it Video by Robert Edridge-Waks 'Quickies,' a five 7" vinyl box set, is twenty-eight new short songs ...
Thanos
2 days, 8 hours ago
Views: 350 • Comments: 0 • Rating: 0
Tweets: 1 • Share to Facebook
#Thegreatpoolpondconversion - 200329First we'd like to lodge a complaint: Since the day we laid the liner (3/1/20), it hasn't rained once. Now to business. Since our design does not include a filter, we need to give the whole system a head start. ...
I Don’t Take Responsibility At All (dangerman)
3 days, 8 hours ago
Views: 318 • Comments: 0 • Rating: 1
Tweets: 0 • Share to Facebook
Splendid Isolation - Warren ZevonSplendid Isolation - Warren Zevon
Thanos
5 days, 6 hours ago
Views: 674 • Comments: 0 • Rating: 0
Tweets: 4 • Share to Facebook
FBI Statement Regarding March 24, 2020 Incident in Belton, Mo. - Lee’s Summit Tribune KANSAS CITY, Mo. – On March 24, 2020, the FBI executed a probable cause arrest of Timothy Wilson, 36, at the 100th block of Wilbur Parish Circle, Belton, Mo, at the conclusion of a long-running domestic terrorism investigation. While ...
Thanos
1 week, 1 day ago
Views: 969 • Comments: 0 • Rating: 1
Tweets: 7 • Share to Facebook
Bright Eyes - Persona Non Grata (Official Visualizer) "Persona Non Grata” by Bright Eyes out now on Dead Oceans.Stream/buy - ffm.to ******* Produced by: Bright EyesEngineered by: Mike MogisAssistant Engineer: Adam RobertsMixed by: Mike MogisMastered by: Bob LudwigLyrics: Conor OberstWriters / Composers: Conor Oberst Publishing: Written by ...
Thanos
1 week, 2 days ago
Views: 991 • Comments: 0 • Rating: 0
Tweets: 2 • Share to Facebook
A Compline Prayer For those of us who follow traditions that include the daily offices, Compline is the last service of the day, right before going to sleep for the night. It gives a moment to pause and reflect upon the day ...
William Lewis
1 week, 2 days ago
Views: 742 • Comments: 0 • Rating: 1
Tweets: 1 • Share to Facebook
#Thegreatpoolpondconversion - 200322This was another weekend that doesn't look like much in pictures. We made a cutout in the stock tank for the spillway slab.It weighs 55 pounds. We spent some time figuring how to balance it properly and get a nice ...
I Don’t Take Responsibility At All (dangerman)
1 week, 2 days ago
Views: 852 • Comments: 1 • Rating: 7
Tweets: 1 • Share to Facebook
Betrayal-Why Did Trump Believe Chinese Disinformation Instead of US Intelligence? ...This criticism contains an element of truth. As The Wall Street Journal reported in early March, the Chinese government lied about the threat posed by COVID-19 and the coronavirus’s transmissibility to humans, and dragged its feet in informing the ...
Rightwingconspirator
1 week, 2 days ago
Views: 1,042 • Comments: 0 • Rating: 4
Tweets: 5 • Share to Facebook