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”>
[img[http://instagram.com/p/w1x9gVhQdR/media/?size=t]]
</a>

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:

http://tiddlywiki.com/prerelease/#%24%3A%2Fplugins%2Ftiddlywiki%2Ftwitter%2Fusage
 <http://tiddlywiki.com/prerelease/#$:/plugins/tiddlywiki/twitter/usage>

Best wishes

Jeremy.



> On 2 Mar 2017, at 03:31, Steven Schneider <[email protected]> wrote:
> 
> This page 
> <https://api.instagram.com/oembed?url=http://instagr.am/p/fA9uwTtkSN/> 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.
> 
> 
> -- 
> 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 [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywiki 
> <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
>  
> <https://groups.google.com/d/msgid/tiddlywiki/37de9aa6-10b8-44fd-a928-19ae0eeda0e1%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/7DA794B2-03D5-4C18-9060-1A9D9439F35E%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to