Skip to content

Bolt.cm extension for getting raw feed data from Instagram's public API.

Notifications You must be signed in to change notification settings

zomars/bolt-public-instagram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instagram

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.

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 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.

Contributing

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.

About

Bolt.cm extension for getting raw feed data from Instagram's public API.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages