Comments (7)
No there is no way to do this, as is the case with the rest of the gatsby plugins.
What you can do is build regularly your website, builds are supposed to be fast and you should be able to schedule more than 1 per day for example.
from gatsby-source-instagram.
Is it possible to set up a hook for instagram posts?
from gatsby-source-instagram.
Do you have an example of another gatsby plugin providing a hook or anything? i could look how to do this
from gatsby-source-instagram.
Actually even if i could add a hook that provides a wrap of the API etc, it wouldn't make much sense since you wouldn't be able to profit from the graphql and image processing.
I am closing this issue, feel free to open this again if you feel something could be done in the scope of this plugin!
from gatsby-source-instagram.
@ergunpp You should be able to set up a web hook that triggers any time a new post is made to a given account which makes an http request triggering your build. I'm deploying a a website I'm working on over the weekend and had planned on doing this, I would be happy to report back if you're interested.
from gatsby-source-instagram.
from gatsby-source-instagram.
@ergunpp It looks like instagram no longer supports the web hook they used to for "new media posts" to an account - they did previously. You can however do this via zapier, and the number of "zaps" you get on the free tier should be sufficient for what you want to accomplish unless the account in question is posting in excess of 100 posts a month. You get 100 'tasks' a month on the free tier. You are charged every time the task is run which would in this case be any time new media is posted to the account. $20/month gets you 1000. Alternatively you could just schedule a daily build as @oorestisime mentioned with netlify. I also believe you can set up IFTTT to hit the netlify build endpoint for your site and you could easily just build by pressing a button on your phone whenever you wanted. This of course would require you to remember to do so.
from gatsby-source-instagram.
Related Issues (20)
- Cannot read property 'next' of undefined
- sourced image URL expires after a few days HOT 1
- Cannot read property 'edge_owner_to_timeline_media' HOT 2
- I can use version 0.6.1, but not 0.9.0 (Cannot query field "allInstaNode" on type "Query") [Gatsby 2.27.0] HOT 3
- Use maxPosts for scraping method HOT 1
- Hashtag Graph API function doesn't work HOT 5
- Cannnot get last 3 posts HOT 1
- Does using the Graph API remove the 50 posts limit? HOT 1
- New gatsby version issue HOT 7
- Error status Error: Request failed with status code 500 HOT 2
- Could not fetch instagram posts. Error status TypeError: Cannot read property 'user' of undefined HOT 13
- Unable to queryCarousel Images when scraping public posts HOT 1
- Migrating to safer typescript implementation HOT 3
- Dependency Dashboard
- Build works fine locally, but fails on Gatsby Cloud HOT 5
- Extend the Facebook/Instagram access token time HOT 2
- Error while running the sourceNodes lifecycle HOT 2
- Maintenance HOT 3
- NPM peer dependencies update HOT 1
- url signature expired
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 gatsby-source-instagram.