Git Product home page Git Product logo

Comments (5)

alexkafer avatar alexkafer commented on May 24, 2024 1

Just tried it, worked perfectly. Thank you very much! It might be somewhat beneficial to say something about that on the readme, save somebody an hour or two of time.

from instagramkit.

dezinezync avatar dezinezync commented on May 24, 2024

What do you mean by app hook?

When the user successfully authenticates, Instagram triggers the callback URL (which you define under your app's URL Schemes).

That in turn triggers the post authentication method in InstagramKit which stores the credentials passed by Instagram.

from instagramkit.

alexkafer avatar alexkafer commented on May 24, 2024

App hook meaning the custom url type thing that apps can register, i.e. instagram://app to open the app.

I guess what I am really asking is, What do you put as the OAuth redirect_uri when creating a client on the Instagram Developer site?

So I have to have a callback url in both instagram's side, as well as InstagramKitAppRedirectURL in InstagramKit's config, but where do I get this address? Do I need to host some sort of authentication server to "relay" the messages? That seems a bit overkill... I feel like I might be over complicating this

from instagramkit.

dezinezync avatar dezinezync commented on May 24, 2024

There is no need for any server. The auth url can be as simple as "yourappname://myauthroute" and Instagram will call that URL. If you have set the parameters on InstagramKit correctly, it'll automatically take over the authentication bit.

from instagramkit.

alexkafer avatar alexkafer commented on May 24, 2024

Oh! So they just need to be identical, and InstagramKit just looks for the url with the access token and gets it from there?

from instagramkit.

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.