Skip to content
This repository has been archived by the owner on Oct 14, 2018. It is now read-only.

Instagram authentication not working properly #23

Closed
elementsrtyte opened this issue Feb 28, 2018 · 6 comments
Closed

Instagram authentication not working properly #23

elementsrtyte opened this issue Feb 28, 2018 · 6 comments
Assignees

Comments

@elementsrtyte
Copy link

Checklist

Expected Behavior

When I am prompted the instagram login screen, and I push 'Log in', the success or failure callback should be triggered.

Actual Behavior

When I am prompted the instagram login screen, and i push 'Log in', I am routed to a Instagram branded, 'page not found' page. None of the callbacks are called and I don't receive an access token.

I inspected the traffic and it looks like the following POST call is resulting in a 404, regardless whether the username or password is correct:
https://www.instagram.com/accounts/login/?force_classic_login=&next=/oauth/authorize%3Fclient_id%CLIENT_ID%26redirect_uri%3DREDIRECT_URI%26response_type%3Dtoken%26scope%3Dbasic

I think the issue may be around this.

Steps to Reproduce the Problem

  1. Ensure user is logged out. Just call this method to bring up the instagram login screen.
Instagram.shared.login(from: self.navigationController!, success: {
                    print("Success")
                }, failure: { error in
                    print(error.localizedDescription)
                })

Specifications

  • iOS Version: 11.2
  • Device(s): iPhone 7
@Shyam-Pgmr
Copy link

I have the same problem

@antoniachekrakchieva
Copy link

Same one

@LeandroIvan
Copy link

Did you guys put the right InstagramRedirectURI and InstagramClientID inside the Info.plist file?

@AnderGoig
Copy link
Owner

I've trying to reproduce your problem but I can't, have you tried again? Maybe it was a temporary error.

@AnderGoig AnderGoig self-assigned this Mar 3, 2018
@elementsrtyte
Copy link
Author

Yep, it was on the instagram side. Looks like it's working fine now. Thanks for checking.

@AdieOlami
Copy link

how do I get InstagramRedirectURI?

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

No branches or pull requests

6 participants