Instagram

Media Entity Instagram implements media entity resource provider for Instagram photos and videos.

Requirements

  1. Media Entity

Installation

  1. Download Media Entity from Drupal.org.
  2. Download Media Entity Instagram from Drupal.org.
  3. Install both Media Entity Instagram and Media Entity in the usual way.

Usage

  1. Follow the instructions about creating a media bundle

  2. Create an Instagram link field on a Media bundle:

    • On media bundles overview page choose Manage fields on created Instagram bundle.

      Step 1

    • Click on + Add field. For a storage type choose Link, fill a Label field and click Save and continue.

      Step 2

    • Return to the bundle configuration and set "Field with source information" to use this new field.

      Step 3

    • On media bundles overview page choose Manage display on created Instagram bundle and select Instagram embed for the newly created field (Instagram link in our case) and then Save.

      Step 4

  3. Create a Media entity:

    • On admin/content/media click on + Add media.

      Step 5

    • Fill Media name, Instagram link fields similarly as it is displayed below and click Save.

      Step 6

      Note: Validation will fail if incorrect Instagram URL is provided and this also works with embed codes and plaintext fields, not just link field.

    • The created Instagram media entity is saved.

      Step 7

  4. Add an entity (media) reference field on a content type:

    • On desired content type (i.e. Article), on admin/structure/types, click on Manage fields.

      Step 8

    • Click on + Add field.

      Step 9

    • From References menu choose Other, fill the Label and click Save and continue.

      Step 10

    • Choose Media for Type of item to reference and click Save field settings.

      Step 11

    • Select Instagram bundle in Reference type section and click Save settings.

      Step 12

  5. Open Manage display of your content type (in our case Article):

    • Select Rendered entity for the newly created field (Entity media reference) and then Save.

      Step 13

  6. Create a new article with embedded Instagram post:

    • For an Instagram reference field choose a created entity Instagram entity.

      Step 14

    • The Instagram posts are displayed on the saved article page.

Maintainers

Get in touch

results matching ""

    No results matching ""