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

LargatSeif/bolt-public-instagram

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%