AnderGoig / SwiftInstagram

Instagram API client written in Swift
https://git.io/vdNAn
MIT License
578 stars 81 forks source link

Instagram authentication not working properly #23

Closed elementsrtyte closed 6 years ago

elementsrtyte commented 6 years ago

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 commented 6 years ago

I have the same problem

antoniachekrakchieva commented 6 years ago

Same one

LeandroIvan commented 6 years ago

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

AnderGoig commented 6 years ago

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

elementsrtyte commented 6 years ago

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

AdieOlami commented 6 years ago

how do I get InstagramRedirectURI?