This bolt.cm extension will get raw feed data from Instagram's public API. It makes use a modified version of Vinkla's Instagram Package.
- Login to your Bolt installation
- Go to "Extend" or "Extras > Extend"
- Type
instagram
into the input field - Click on the extension name
- Click on "Browse Versions"
- Click on "Install This Version" on the latest stable version
- PHP 7+
- Bolt 3+
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.
{% for post in instagram('marutaro') %}
{{ dump(post) }}
{% endfor%}
Because this extension uses an UNOFFICIAL Instagram's public API it has the following limitations:
- You can only fetch feeds from public accounts.
- You can only retrieve the lastest 12 posts.
- It may break without further notice, so be warned.
I'm planning to adding a more robust implementation using access tokens. But for now I'm open to suggestions and PRs are always welcome.