Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redirect the user to the app after login #237

Open
murad1981 opened this issue Jun 18, 2016 · 7 comments
Open

redirect the user to the app after login #237

murad1981 opened this issue Jun 18, 2016 · 7 comments

Comments

@murad1981
Copy link

murad1981 commented Jun 18, 2016

how can I redirect the user to the app after successful login ? I 've set the redirect URI in Instagram Api website for my client to be [myClientID]://authorize and I've put a new URL Type in project settings to be ig[MyClientID] but every time the user logs in instagram displays a white page with : 400 Bad Request text written on top.
I've also opened a new SO question here for this issue.

any help will be highly appreciated.

@gugges
Copy link
Contributor

gugges commented Jun 20, 2016

The app style URL [myClientID]:// will not redirect on the Instagram website. The readme for this repo has detailed steps on how to monitor for the accessToken from your webView using the UIWebViewDelegate. Once a valid token is received, just dismiss the webView. It will dismiss before the page 400s.

@ryderjack
Copy link

May be related to too many requests, when I was testing auth I had the same issue so left it for a few days and it was alright.

@NirmitDagly
Copy link

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.

@arivoir
Copy link

arivoir commented Apr 22, 2017

@NirmitDagly Did you find any workaround?

@eugene-software
Copy link

@NirmitDagly Looking forward to any updates =)

@malithjkmt
Copy link

malithjkmt commented Apr 27, 2018

@NirmitDagly, you can still use redirection to xyz:// custom URL schemes by using a 3rd party to redirect http:// to xyz://

In my case (my backend is AWS API gateway + lambda func) I used aws api gateway and lambda to redirect
read more

@simplenotezy
Copy link

@NirmitDagly I know this is years old, but did you ever find a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants