Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1012 Bytes

README.md

File metadata and controls

32 lines (26 loc) · 1012 Bytes

Instagram

This bolt.cm extension will get raw feed data from Instagram's public API. It makes use of Vinkla's Instagram Package.

Installation

  1. Login to your Bolt installation
  2. Go to "Extend" or "Extras > Extend"
  3. Type instagram into the input field
  4. Click on the extension name
  5. Click on "Browse Versions"
  6. Click on "Install This Version" on the latest stable version

Requirements

  • PHP 7+
  • Bolt 3+

Configuration

Nothing to configure, just call the {{ instagram('username') }} twig function where username is the user profile you want to retreive. This will return an array of the latests posts in that profile.

Example

{% for post in instagram('marutaro') %}
  {{ dump(post) }}
{% endfor%}

Notes

Because this extension uses Instagram's public API it has the following limitations:

  • You can only fetch feeds from public accounts.
  • You can only retrieve the lastest 20 posts.