Guys this is what I have for the Twitter embed, and it's not working for me. What am I doing wrong?
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={vb:raw code}&callback=loadx"></script>
<div class="twitter" onLoad="loadx().html"/>
And here's the REGEX:
Code:
^https?:\/\/twitter\.com\/(?:#!\/)?\w+\/status\/(\d+)
I also tried this REGEX:
Code:
[https]*://[www\.]*twitter\.com/[\w-]+/status[es]*/([\d]+)