1.0.12 • Published 4 months ago

ig-images-carousel v1.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Instagram Carousel

This project creates an Instagram carousel using JavaScript, which loads Instagram images dynamically through the Instagram API. It also allows automatic sliding and supports custom styling through CSS.

Table of contents

Installation

using npm:

npm i ig-images-carousel

Usage

<div id="instagram-area"></div>

<script src="./node_modules/ig-images-carousel/dist/index.umd.js"></script>
<script>
  ignaCarousel.initInstagramCarousel({
    longLivedAccessToken: 'APP_TOKEN',
    igName: 'NAME_OF_INSTAGRAM',
  });
</script>

API TOKEN

To generate an Instagram API token, follow these steps:

  1. Set up a Facebook Developer App.
  2. Add Instagram Basic Display to your app in the dashboard.
  3. Generate a short-lived access token using the User Token Generator under Instagram Basic Display.
  4. Exchange the short-lived token for a long-lived access token by making a GET request to:
    https://graph.instagram.com/access_token?grant_type=ig_exchange_token&client_secret={your-app-secret}&access_token={your-short-lived-access-token}

LICENSE

This project is licensed under the MIT License

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.11

8 months ago

1.0.10

8 months ago

1.0.12

4 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago