D-32 / WatchPics

:sunrise_over_mountains: Instagram for the Apple Watch
Apache License 2.0
96 stars 17 forks source link

App redirect_uri issue with Instagram #4

Open NirmitDagly opened 8 years ago

NirmitDagly commented 8 years ago

Hello, I am developing iOS application and used this repo for integration of Instagram into project. I have followed the readme and also googled about how to open the app after successful login into Instagram and generating token. But In my case, I am not able to redirect into application.

Here is what happening..

When I am trying to define redirect_uri to Instagram, it is always telling me to register with http:// or https:// only and not by my app name just like xyz:// which is defined as per the custom URL scheme.

Now, when I have set the redirect_uri based on the http://xyz and configure the same into custom URL scheme in my XCode project, this won't allow the app opening automatically and redirects to the web page in safari.

So, I would like to know the possible workaround for this. Any help will be appreciated.

D-32 commented 8 years ago

It seems Instagram indeed doesn't allow you to enter anything else than http/https. When I created this app that was still possible. Maybe the server you use as a redirect uri could redirect the user to your custom schema and open the app like that?