Comments (3)
I got it working with Nuxt 2.2.0 with the following:
/plugins/vue-instagram.js
import Vue from 'vue'
import VueInstagram from 'vue-instagram'
Vue.use(VueInstagram)
/nuxt.config.js
plugins: [
{ src: '~/plugins/vue-instagram', ssr: false }
]
Then you can use it like so. You don't need to import the plugin in your Vue component as it's already defined in the Vue instance.
<template>
<vue-instagram token="accessTokenHere" :count="5" :tags="['hashtag1', 'hashtag2']" mediaType="image">
<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>
</script>
from vue-instagram.
try to use the component as client-side only
<script>
let VueInstagram
if (process.BROWSER_BUILD) {
VueInstagram = require('vue-instagram')
}
export default {
name: 'App',
components: {
VueInstagram
}
}
</script>
from vue-instagram.
Thanks @danchristian , but i have a No Access Control Allow Origin with this method :(
Any ideas?
Thanks ;)
from vue-instagram.
Related Issues (20)
- Add filtering by String HOT 2
- How do I use vue-instagram with waterfall? HOT 2
- Only 6 posts returned HOT 3
- Cannot read property 'text' of null HOT 1
- Tutorial: How to fix "This client has not been approved to access this resource." HOT 1
- API Down? HOT 11
- Realtime HOT 1
- Your demo shows no instragram feed? HOT 2
- Unable to use with Vuepress / SSR (browser-jsonp?) HOT 1
- Issue with Content Security Policy (CSP) HOT 1
- Please document the "feed" object HOT 1
- Loading slot? HOT 1
- Vue 3 will deprecate scoped slots HOT 1
- Does this work with new 2019 Instagram Graph API? HOT 3
- Call method on load images HOT 3
- Using carousel with vue instagram HOT 1
- Making it work with the 2020 API change HOT 26
- The access_token provided is invalid.
- 'window is not defined' in 'node_modules\vue-instagram\dist\vue-instagram.min.js'
- No 'Access-Control-Allow-Origin' header is present on the requested resource.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-instagram.