Corrente

If you have "no place to go," come here!

Embedding tweets

It used to be that grabbing the tweet's URL and pasting it into a post's content was sufficient to reproduce the tweet at Corrente, formatting and all. Since twitter started messing about with its APIs, that is no longer true. So here is the new way to repost a tweet. Example:

Steps:

1. Select the tweet by clicking on it. The "Expand," "Reply," ... and, at right, "••• More" options appear.

2. Click on "••• More." A drop-down menu appears.

3. Select "Embed Tweet." The "Embed this tweet" dialog appears.

4. Click in the text box below "Add this tweet...." and copy the HTML code. Make sure you copy all the HTML Code. On the Mac, I use CMD-A (Select All) then CMD-C (Copy) to avoid having to select the code by dragging. On Windows, CTRL-A, then CTRL-C.

5. Return to your post. Paste the HTML code (all of it) where you want to tweet to appear. (The default Text format, "HTML Tags (old school)" is the one you should use.) The HTML code should begin with <blockquote and end with </script>. If it does not, you have not copied all the HTML code. Return to step 4.

6. When you are ready, Save the post.

7. The tweet will appear in your post fully formatted. It may take a few seconds to "warm up," since the formatting is done from a twitter script located on the twitter site, which has to be loaded into the browser. Until that download is complete, only the text of the twitter will appear.

NOTE If you want to tweet to appear at the start of your post and on the teaser for the front page, place a break (the A --- B button) immediately after the code that you pasted in. Otherwise, the site will break the post into teaser and body algorithmically, and may put the break in the wrong place, such that the twitter formatting script does not know what to do.

Have at it!

AttachmentSize
tweet_1.jpg20.4 KB
tweet_2.jpg43 KB
0
No votes yet

Comments

Submitted by MontanaMaven on

Thanks! It is still appearing as text. Maybe it's warming up.
--

Submitted by MontanaMaven on

I feel like taking the rest of the day off! Between Vast Left and Paula's Best Dishes I am staying sane through all this.

Cujo359's picture
Submitted by Cujo359 on

I'm just seeing text, too, and the hashtag links don't work for some reason. They act like internal (in this case, Corrente) links.

Hmm. Let's see how that works:

Looks like embed code includes some Javascript from the twitter.com domain.

Cujo359's picture
Submitted by Cujo359 on

That's the secret! Need to have correntwire.com domain enabled for Javascript, also. Then the full Twitter messages appear in all their glory.

Cujo359's picture
Submitted by Cujo359 on

Sorry. Yes, it's something you set in NoScript, or similar add-ons for browsers. Of course, it also wouldn't work if you have Javascript completely disabled. In a sense, disabling Javascript forbids all domains from running it.