GithubHelp home page GithubHelp logo

Comments (7)

oorestisime avatar oorestisime commented on June 19, 2024

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.

ergunpp avatar ergunpp commented on June 19, 2024

Is it possible to set up a hook for instagram posts?

from gatsby-source-instagram.

oorestisime avatar oorestisime commented on June 19, 2024

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.

oorestisime avatar oorestisime commented on June 19, 2024

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.

tkstang avatar tkstang commented on June 19, 2024

@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.

ergunpp avatar ergunpp commented on June 19, 2024

from gatsby-source-instagram.

tkstang avatar tkstang commented on June 19, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.