amp-instagram
Instagram埋め込みを表示します。
プラグインの読み込み
amp-instagramを使用する場合は別途プラグインの読み込みが必要です。
amp.jsの後にでも読み込ませましょう。
<script async custom-element="amp-instagram" src="https://cdn.ampproject.org/v0/amp-instagram-0.1.js"></script>
基本構文と動作
どんな書き方でどんな動きすんのかを。まず簡単なものを。
<amp-instagram data-shortcode="fBwFP" data-captioned width="400" height="400" layout="responsive"> </amp-instagram>
各種プロパティについて
data-shortcode | Instagramのデータショートコードを指定します。 |
---|---|
data-captioned | Instagramのキャプションを含めます。 |