Hi ,
I used this sample to authenticate using Instagram :
https://github.com/CrossGeeks/SocialMediaAuthenticationSample
There is one issue though , after logging in with Instagram even though it’s set to dismiss the viewcontroller but it doesn’t disappear after logging in . The only option is to cancel which does reverse of what I need here.
Any reason why ?
Thanks y_SBSIC for pointing out the issue . It's the redirect uri . I used this one and worked well .https://api.instagram.com/oauth/authorize/?client_id=YOURCLIENTID&redirect_uri=YOURREDIRECTURI&response_type=code
Answers
Check your redirect URL and compare your code with below :
You can check here :
var window = UIApplication.SharedApplication.KeyWindow;
var vc = window.RootViewController;
and
vc.DismissViewController(true, null);
Post your sample here if still facing any issue.
Dude , I have exactly the same code which doesn't work as I said . Redirect URL is set to :
const string InstagramRedirectUrl = "https://localhost:3000/callback";
That doesn't work also .
Thanks y_SBSIC for pointing out the issue . It's the redirect uri . I used this one and worked well .
https://api.instagram.com/oauth/authorize/?client_id=YOURCLIENTID&redirect_uri=YOURREDIRECTURI&response_type=code