redirect URI doesn't match registered redirect uri Instagram iOS

1.3k Views Asked by At

I am integrating Instagram login through this sdk https://github.com/crino/instagram-ios-sdk

I registered my app with Redirect URI "http://www.webvillee.com/callback" and got Client ID and Secret ID.

Now when I want to login through app it is showing Error 400 "Redirect URI does not match registered Redirect URI".

I also tried to update my Redirect URI in Security session with ig+Client ID+://authorize but it is giving me error of invalid website. also I haved change URL Schemes in my app info.

Can any one lead me to register my app and also tell me the reason causes error in my code. Thank you

Edit: this is my code to authenticate

self.instagram = [[Instagram alloc] initWithClientId:APP_ID
                                            delegate:nil];
1

There are 1 best solutions below

1
On

I went through http://codegerms.com example of Instagram login and changed my Redirect URI from "http://www.webvillee.com/callback" to "http://webvillee.com/". For now it is working fine I don't know if It is permanent solution or not, but it worked for me.

Hope this will help to some other developers.

Edit

Start from here