Instagram oEmbed (?)

53 views
Skip to first unread message

Steven Schneider

unread,
Mar 1, 2017, 10:31:42 PM3/1/17
to TiddlyWiki
This page from instagram says that using GET /oembed or GET /p/shortcode/media to send shortlinks and receive url of objects, that presumably can be served as images? Is there a standard way to issue & process these kinds of requests in TiddlyWiki? 

Ideally, we'd have a macro so that <<instagram id="fA9uwTtkSN" width="50%">> would display the photo, and  <$button><<getInstagram fA9uwTtkSN>></button> would import the photo as a tiddler.

Outside the range of my knowledge...but thought I'd ask.

///steve.

Jeremy Ruston

unread,
Mar 2, 2017, 4:27:52 AM3/2/17
to tiddl...@googlegroups.com
Hi Steve

Instagram makes it quite easy to directly embed images if you know their ID. For example, this works out of the box in TiddlyWiki:

<a href="https://www.instagram.com/p/w1x9gVhQdR/" target="_blank”>
The image sizes are:

t = 150 x 150 px
m = 306 x 306 px
l = 640 x 640 px

It should be quite easy to build a macro around that.

Embedding the entire Instagram post, complete with the text and buttons, is a slightly more complicated business, requiring using their API.

Funnily enough, I’ve just introduced a new plugin for embedding tweets, where there is no choice but to use their API:


Best wishes

Jeremy.



--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/37de9aa6-10b8-44fd-a928-19ae0eeda0e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages