level51 / silverstripe-instagramfeed
A SilverStripe module that brings a instagram feed to your homepage
Installs: 29
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 0
Type:silverstripe-module
This package is auto-updated.
Last update: 2024-10-25 08:13:00 UTC
README
InstagramFeed is a small module for your SilverStripe based homepage, that allows you to show a feed of your Instagram posts. All you need to do is to install and setup the module and insert a client id (see setup below) and a username.
Maintainers
- Daniel Kliemsch dk@lvl51.de
Installation
composer require level51/silverstripe-instagramfeed
Setup
- Be sure that the module is in a folder instagramfeed/ on the root of the project.
sake dev/build "flush=all"
, depending on your config you might have to do this via URI in the browser.- Visit the Instagram developer page to register your application
- Go to the CMS settings and fill there your new generated Client ID as well as your user name ...
- ... save the changes ...
- ... and click on the Get Instagram User ID action - this will fetch the User ID by the given user name
- Create a page with the type InstagramFeedPage and fill the Post Limit field (if not filled, 5 is used as default)
- Call the page in the frontend - everyting should work now :) of course you can overwrite the very basic demo-template by creating a template called InstagramFeedPage in your theme directory
Features
- Fetching the most recent Instagram posts of every (public) user
- Fetch is done on every page load - so there are always the most recent posts visible
- Get the User ID, that is needed for the API calls by the given user name
- Contains a InstagramFeedPage page type, that fulfills the basic needs