Giter VIP home page Giter VIP logo

instagram-photo-picker's Introduction

Instagram Photo Picker

Allow users to pick photos from their Instagram profile in easy way.

Introduction

Implementing Instagram API may be difficult for some developers, that is why I have created this module.

It is clear and fast way to implement nice looking (and working) photo picker for Instagram photos in your React application.

Component is using instagram-web-oauth module for authorization.

Requirements

First of all go to Instagram Developer Console and create your app.

After creating app go to: Manage Clients -> Manage -> Security.

Some important notes:

  1. Disable implicit OAuth - must be unchecked, otherwise we will not be able to use Implicit flow!

  2. Valid redirect URIs - add URI from where you are calling instagram authorization.

For example your redirect URI can look like this: http://localhost:3000/.

Demo

Preview

Preview Preview

Usage

Place this code in your </head> tag:

<script src="https://instagram-photo-picker.firebaseapp.com/instagram.min.js"></script>
<script>
  window.instagramPhotoPicker.clientId = instagram_client_id;
  window.instagramPhotoPicker.onPhotosPicked = (photos) => {
    console.warn('picked photos', photos);
  };
</script>

To show dialog, simply call:

window.instagramPhotoPicker.show();
// or if you want to hide:
window.instagramPhotoPicker.hide();

You can also get all downloaded images:

window.instagramPhotoPicker.getInstagramImages();

Summary

I hope that you will find this module useful, also if you have any problems or questions please let me know, I will be more than happy to help you :)

My email: [email protected]

instagram-photo-picker's People

Contributors

venits avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.