1.3.4 • Published 6 years ago

vue-instagram-extended v1.3.4

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

vue-instagram

npm npm npm npm

Instagram's feed fetcher component based on Vue.

Works with Vue 2.*

Demo

My Instagram's feed

Installation

Install via CDN

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

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

Install via NPM

$ npm install vue-instagram --save

Register as Component

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

export default {
  name: 'App',

  components: {
    VueInstagram
  }
}

Register as Plugin

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

Vue.use(VueInstagram)

Usage

Style your feeds using scoped slot

<template>
  <vue-instagram token="accessTokenHere" username="kevinongko" :count="5" :tags="['hashtag1', 'hashtag2']">
    <template slot="feeds" slot-scope="props">
      <li class="fancy-list"> {{ props.feed.link }} </li>
    </template>
    <template slot="error" slot-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

PropsDescriptionTypeRequired
tokenInstagram's access tokenStringtrue
usernameInstagram's username (token's owner)Stringtrue
countNumbers of feed to fetchNumbertrue
tagsFilter profile's feed by hastagArrayfalse

License

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

Support

Hello, I'm Kevin the maintainer of this project in my free time (which is getting lessen these days), if this project does help you in any way please consider to support me. Thanks :smiley:

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago