I create a responsive native application and add instagram authentication to it. I want users to be able to "add" their instagram accounts to their main user account, so I have a "connect your instagram" button.
I have work on my web application. The stream is as follows:
- The user clicks the "connect instagram" button, and a new window opens and is directed to
https://instagram.com/oauth/authorize/?client_id=xxxx blah blah - The user authenticates and redirects instagram to mine
REDIRECT_URIwith parameterCODE - My API server accepts the parameter
CODEand sends an email request to instagram with all credentials. - Instagram checks this information and gives users
ACCESS_TOKEN
Can someone tell me how this should work in an application?
What should be mine REDIRECT_URI? Api server
Is this the same thread as my web application? If so, how can I return users to my application after closing the window. How does my application know that the user now has an access token?
source
share