Skip to content

suissa/vue-instagram

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-instagram

npm npm npm npm

Fetch Instagram feeds component based on Vue.

Works with Vue 2.*

Demo

My Instagram's feed

Installation

$ npm install vue-instagram --save

Install as Component

import Vue from 'vue'
import VueInstagram from 'vue-instagram'

export default {
  name: 'App',

  components: {
    VueInstagram
  }
}

Install as Plugin

import Vue from 'vue'
import VueInstagram from 'vue-instagram'

Vue.use(VueInstagram)

Install via CDN

<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/vue-instagram"></script>

<script>
  Vue.use(VueInstagram.default)
</script>

Usage

Style your feeds using scoped slot

<template>
  <vue-instagram token="accessTokenHere" username="kevinongko" :count="5">
    <template slot="feeds" scope="props">
      <li class="fancy-list"> {{ props.feed.link }} </li>
    </template>
    <template slot="error" scope="props">
      <div class="fancy-alert"> {{ props.error.error_message }} </div>
    </template>
  </vue-instagram>
</template>

<script>
import VueInstagram from 'vue-instagram'

export default {
  name: 'App',

  components: {
    VueInstagram
  }
}
</script>

Props

Props Description Type Required
token Instagram's access token String true
username Instagram's username (token's owner) String true
count Numbers of feed to fetch Number true

License

Vue-Instagram is open-sourced software licensed under the MIT license

About

Fetch Instagram feeds component based on Vue.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vue 57.8%
  • JavaScript 42.2%