Code Monkey home page Code Monkey logo

meteor-accounts-instagram's Introduction

Meteor Acccounts Instagram

Instagram account login for meteor

##Install

cd <your-meteor-project>

meteor add bozhao:accounts-instagram

and also add following package as pre-req -

meteor add service-configuration

##Setup and Usage

  1. Register your app with Instagram Developer Site at following url- http://instagram.com/developer/clients/register

  2. Fill out the given form but make sure that redirect url as shown as follows-

OAuth redirect_uri:<your-server-domain>:<port>/_oauth/instagram

For e.g.redirect url for localhost : http://localhost:3000/_oauth/instagram

  1. After registration, note down the clientid and client secret.
  2. Now in your app do create the accounts.js (or acoounts.coffee if you use coffeescript) and put following code inside

so,it file looks in directory tree- <your-app-directory>/server/accounts.js and put the client id and client secret from previous step

```
ServiceConfiguration.configurations.remove({
  service: "instagram"
});
ServiceConfiguration.configurations.insert({
  service: "instagram",
  clientId: "<your-client-id>",
  scope:'basic',
  secret: "<your-client-secret>"
});
```
  1. Now, all things are setup, you are ready to use this package
  2. Add following button code for login
      Meteor.loginWithInstagram(function (err, res) {
          if (err !== undefined)
            console.log('sucess ' + res)
          else
            console.log('login failed ' + err)
      });

meteor-accounts-instagram's People

Contributors

ajduke avatar bengott avatar hlandao avatar yubozhao 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.