GithubHelp home page GithubHelp logo

hatsumatsu / instygram_via_webhooks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ericwvgg/instygram_via_webhooks

0.0 2.0 0.0 52 KB

Upload Instagram images into Wordpress via IFTTT and webhooks.

License: GNU General Public License v2.0

JavaScript 5.06% PHP 94.94%

instygram_via_webhooks's Introduction

Instygram via Webhooks

This plugin receives Instagram posts via IFTTT webhooks.

Description

Use this plugin in conjunction with IFTTT to insert Instagrams into either your posts or a custom Instagram post type.

Unlike IFTTT’s Wordpress recipe, this will actually upload images to your server, which will give you greater flexibility in theme-making and, depending on your setup, possibly better performance. You will also get all the usual Wordpress thumbnails and a “featured image” thumbnail.

This plugin requires the Wordpress REST API v2.

Thanks to Hugh Lashbrooke for his very cool Wordpress plugin template. https://github.com/hlashbrooke/WordPress-Plugin-Template

Installation

  1. Log in to your account with IFTTT.com
  2. Add the IFTTT recipe: https://ifttt.com/recipes/397411-instagrams-in-wordpress-via-webhooks
  3. IMPORTANT: change "yourserver.com" in the recipe to reflect the domain of your Wordpress install.
  4. Back on your copy of Wordpress, install the Wordpress REST API v2. https://wordpress.org/plugins/rest-api/ (note: this will be included in the Wordpress core very soon.)
  5. Copy this plugin to your wp-plugins folder and Activate.

Optional Settings

By default, Instagram images will upload into your normal Wordpress “posts”. In my experience, having a custom post type is much more useful — in fact, that’s the whole reason I built this thing. So check Custom Posts “on” to get that loveliness.

If you are in a multi-user environment, you can select which user the posts are accredited to. By default it’ll be #1.

You can use IFTTT to trigger posts via some kind of hashtag or criteria other than “my pictures”. It would be a pretty good idea to review those for content before publishing live on your blog, so you can set New Post Status to “Draft” or “Pending”.

Coming Soon

  • Instagrams that insert into normal posts should have the image in the content in an img tag. As this is not my normal use case, I haven’t got to it yet.
  • Tags

Frequently Asked Questions

What the hell, why isn’t this working?

Do you have the IFTTT Maker recipe installed? https://ifttt.com/recipes/397411-instagrams-in-wordpress-via-webhooks

Did you change "yourserver.com" in the IFTTT recipe to reflect your own server?

How does this validate that incoming JSONs are in fact from IFTTT?

It doesn’t. If this is necessary, desirable, or necessary, please chime in on the Github Issues.

instygram_via_webhooks's People

Watchers

 avatar  avatar

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.