Skip to content

EnzoSparacino/Instagram

Repository files navigation

Magento2 Module Sparacino Instagram

``sparacino/module-instagram``

Main Functionalities

A module for the Instagram Basic Display API for Magento2.

It is necessary to generate a "long-lived access tokens for Instagram" by connecting to the site https://developers.facebook.com

Installation

Type 1: Zip file

  • Unzip the zip file and copy contents in app/code/Sparacino/Instagram
  • Enable the module by running php bin/magento module:enable Sparacino_Instagram
  • Apply database updates by running php bin/magento setup:upgrade
  • Compile code by running php bin/magento setup:di:compile
  • Rebuild static content php bin/magento setup:static-content:deploy
  • Flush the cache by running php bin/magento cache:flush

Type 2: Composer

  • Install the module composer by running composer require sparacino/module-instagram
  • enable the module by running php bin/magento module:enable Sparacino_Instagram
  • apply database updates by running php bin/magento setup:upgrade
  • Compile code by running php bin/magento setup:di:compile
  • Rebuild static content php bin/magento setup:static-content:deploy
  • Flush the cache by running php bin/magento cache:flush

Configuration

  • ENABLE (YES/NO)
  • APP_ACCESS_TOKEN

Specifications

  • Block
    • Instagram > instagram.phtml
  • Widget
    • Instagram > widget/instagram.phtml

Usage

You can insert a block inside a CMS page like this:

{{block class="Sparacino\Instagram\Block\Instagram" block_id="instagram.block" template="Sparacino_Instagram::instagram.phtml"}}

or you can use the widget