I can't remember where I found this to credit the source:
Create a new BBCode:
Title: Twitter Embed
BB Code Tag Name: tweet
Replacement:
Code:
<script type="text/javascript">
function loadx(data) {
document.write(data.html);
}
</script>
<script type="text/javascript" src="https://api.twitter.com/1/statuses/oembed.json?id={param}&callback=loadx"></script>
<div class="twitter" onLoad="loadx().html"/>
Example: [tweet]1078420596919357440[/tweet]
Use {option}: No
Button Image (Optional): Twitter.png (see attachment)
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: No
Disable Smilies Within This BB Code: Yes
Disable Word Wrapping Within This BB Code: Yes
Disable Automatic Link Parsing Within This BB Code: Yes
Usage:
- locate the tweet you want to embed on twitter.com
- click the down arrow at the top far right
- Important: click Select link to Tweet (NOT Embed Tweet)
- select just the series of 19 numbers at the very end of the Tweet (NOT the whole URL)
- enter this number between the twwet open and close BBCodes as show above in the example
If I recall correctly, you won't see the embedded tweet until you submit the post and since it needs to contact Twitter it may take a few seconds to display.