vue3-instagram-feed

A Vue 3 component to display a users Instagram posts using Instagram Basic Graph API
2,507 17
Install
npm install vue3-instagram-feed
Latest Version:0.1.4
Vue:3
License:MIT
Last Updated:Apr 13, 2025
Links: GitHub  ·  npm
Maintainer: sjgoodz

Vue 3 Instagram Feed/Gallery

MIT v0.1.2 JavaScript Style Guide

A Vue 3 component that displays a basic Instagram feed using Instagram Basic Graph API and your Facebook access token.

Important: This only works with Vue 3 as I am using the composition API. You also need to generate an Instagram Access Token from the Meta Developer Portal.

Installation

yarn add vue3-instagram-feed

OR

npm install vue3-instagram-feed

Usage

To display a simple gallery with a set number of images.

Props:

  • accessToken: Required.
  • count: Required. Defines the number of images.
  • pagination: Optional. Takes a boolean.
<template>
  <InstagramFeed
    :count="12"
    accessToken="<your token here>"
    :pagination="true"
  />
</template>

Main.js

import { createApp } from "vue";
import App from "./App.vue";

import InstagramFeed from "vue3-instagram-feed";
import "vue3-instagram-feed/dist/style.css";

createApp(App).use(InstagramFeed).mount("#app");

Styling

vue3-instagram-feed includes default styling (dist/styles.css) with that you can use as a base to create your own CSS. All the component's elements are inside a div which acts a wrapper for the icons and the input.

The styles are as shown below, you can ovveride them as you wish.

.instagram-wrapper {
  max-width: 93.5rem;
  margin: 0 auto;
  padding: 0 2rem;
}
.instagram-gallery {
  display: flex;
  flex-wrap: wrap;
  margin: -1rem, -1rem;
  padding-bottom: 3rem;
}
.instagram-gallery-item {
  position: relative;
  flex: 1 0 22rem;
  margin: 1rem;
  color: #fff;
  cursor: pointer;
}
.instagram-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

Related Packages

qalendar

Event calendar and date picker for Vue 3

156,674 293
@franklx/qalendar

Event calendar and date picker for Vue 3

467 294
qalendar-extended

Event calendar and date picker for Vue 3

368 0
vue3-collapse

A Vue 3 custom hook for creating a collapsible element with height transition an...

2,050 4
vue3-verification-code-input

🎉A verification code input for vue 3

52,575 6

Version History

Version Released Vue License
0.1.4 ^3.2.25 MIT
0.1.3 ^3.2.25 MIT
0.1.2 ^3.2.25 MIT
0.0.1 ^3.2.25