dilame / instagram-private-api

NodeJS Instagram private API SDK. Written in TypeScript.
MIT License
5.93k stars 1.14k forks source link

Creating an App #1286

Open mkkurt opened 3 years ago

mkkurt commented 3 years ago

I want to create a simple mobile app using this api. I will use react native. My problem is i dont actually understand how this works. Is this api using instagram's official login page to get the user's data? for example: Should i ask users to login via official instagram login (webview or opening an external browser page) ? if this is correct; how can i use this data to show user some stuff like their followers and profiles etc. ?

Also, i can accept it if you say "this api not for your project, here is an another working api" :)

Nerixyz commented 3 years ago

This library uses the android api. You have to do the login. This isn't really allowed by instagram, so you have to make the decision whether to expose your users to this api or not.

mkkurt commented 3 years ago

thank you

nuthinking commented 3 years ago

@Nerixyz So basically if you use the official Instagram login, it will pass you a token that this library can't use hence login and password should be read by your code? I also assume if you use the official Instagram login they could block your app from using it if they find out you use private APIs.

Nerixyz commented 3 years ago

So basically if you use the official Instagram login

Kind of. It simulates the requests sent when logging in. It's not showing some sort of UI.

it will pass you a token that this library can't use hence login and password should be read by your code?

This is what oauth does, that's probably used by the official API.

I also assume if you use the official Instagram login they could block your app from using it

You can always be blocked. The official API is just different and they can't really be compared.