Instagram API - Redirect Uri in my app

1232
February 07, 2018, at 8:56 PM

I am trying to use instagram api in my android app and they use oauth2 for authentication. They want me to provide a redirect uri. I have researched both stackoverflow and google but still don't understand what to do.

ps.. don't have a webpage or sth.

Answer 1

The redirect URL is meant to be used by Instagram upon a successful login through their site.

From their documentations:

[Upon successful authentication] The server will redirect the user in one of two ways that you choose:

  • Server-side flow (recommended): Redirect the user to a URI of your choice. Take the provided code parameter and exchange it for an access_token by POSTing the code to our access_token url.

  • Implicit flow: Instead of handling a code, we include the access_token as a fragment (#) in the URL. This method is less secure, but allows applications without any server component to receive an access_token.

Judging by your question, you don't currently have the necessary backend to utilize the server-side flow described above.

Hence you're left with the option of doing it "implicitly" which doesn't strictly require a redirect URL. Knowing this, it should be safe to put any string within the Redirect URL field.

Rent Charter Buses Company
READ ALSO
Component is overflowing ads

Component is overflowing ads

I am working in android studio, and I am a bit lost

244
Starting Google Assistant / What's on my screen from onClick of button?

Starting Google Assistant / What's on my screen from onClick of button?

I want to start Google Assistant with a query (or without any) when the user clicks a button, could not find any reference to doing this task

206
how to display data received from android client in server.js to html file?

how to display data received from android client in server.js to html file?

I wrote this nodejs server which receives data from android client

229
How to get average review score from google play

How to get average review score from google play

i am writing an app that need informations about other apps

201