Twitter embed

Embedding multimedia
User avatar
Juanm
Site developer
Site developer
Posts: 1121
Joined: Thursday March 25th, 2004 21h45:21
Location: Behind YOU

Twitter embed

Postby Juanm » Saturday February 1st, 2020 19h17:37

BB Code

Code: Select all

[tweet]{SIMPLETEXT1}://twitter.com/{SIMPLETEXT2}/status/{IDENTIFIER}[/tweet]


HTML

Code: Select all

<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={IDENTIFIER}&callback=loadx"></script>
<div class='twitter' onLoad='loadx().html'/></div>


How To Use

Code: Select all

[tweet]https://twitter.com/username/status/123456789012345[/tweet]



Credits: https://www.phpbb.com/community/viewtop ... #p14626121

Return to “Multimedia”

Who is online

Users browsing this forum: CommonCrawl [Bot] and 0 guests