in-square/pimcore-instagram-bundle

Instagram media sync bundle for Pimcore.

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:pimcore-bundle

pkg:composer/in-square/pimcore-instagram-bundle

v1.0.1 2026-01-04 13:16 UTC

This package is not auto-updated.

Last update: 2026-01-06 08:53:04 UTC


README

Bundle synchronizes recent Instagram media into Pimcore DataObjects. It creates an InstagramItem class on install and provides a console command to fetch the latest posts (image assets + metadata).

Features

  • Imports recent Instagram media into InstagramItem objects.
  • Stores media as Pimcore assets under a configurable folder.
  • Automatically refreshes the Instagram access token when it is close to expiring.
  • Can be scheduled via CRON or executed through Pimcore Process Manager.

Configuration

Create config/packages/in_square_pimcore_instagram.yaml in the Pimcore project:

in_square_pimcore_instagram:
    object_folder: '/instagram'
    assets_folder: '/instagram'
    items_limit: 6

Website Settings

Add or update these Website Settings in Pimcore:

  • instagram_token (text) - required access token.
  • instagram_token_expires_at (text) - updated automatically after token refresh.

Usage

Install the bundle (creates InstagramItem DataObject):

php bin/console pimcore:bundle:install InSquarePimcoreInstagramBundle

Fetch recent items:

php bin/console insquare:instagram:update-photos -c 6

Process Manager

You can add insquare:instagram:update-photos as a Process Manager job in Pimcore to run it on a schedule. The command uses ExecutionTrait, so it integrates with Process Manager out of the box.