October 2017
Intermediate to advanced
370 pages
8h 57m
English
The amp-instagram component is imported with:
<script async custom-element="amp-instagram" src="https://cdn.ampproject.org/v0/amp-instagram-0.1.js"></script>
An Instagram post can be embedded with:
<amp-instagram data-shortcode="BUO3zdKl90s" width="200" height="200" layout="responsive" data-captioned></amp-instagram>
Note the use of the data-captioned attribute; this adds the Instagram post caption to the embed.
You can find an example with both a Twitter post and an Instagram post at /ch5/twitter-instagram.html.
Read now
Unlock full access