I've been poking around today trying to figure out if I can use AME to embed tweets using Twitter's oEmbed.
I've got this in Regular expression:
Code:
http[s]*://[www\.]*twitter\.com/[\w]+/status[es]*/([\d]+)
And this in Replacement:
Code:
<script type="text/javascript" src="https://api.twitter.com/1/statuses/oembed.json?id=$p1"></script>
And yet what happens is I end up with a blank post with no tweet/Twitter rendering when I post something like "https://twitter.com/twitterapi/statuses/133640144317198338".
Is the problem somehow trying to render by way of javascript in a post through AME? I concede I may well be barking up the wrong tree trying to do it this way. Wide open to any and all suggestions.
https://dev.twitter.com/docs/embedded-tweets
https://dev.twitter.com/docs/api/1/get/statuses/oembed