I\'m following Instagram authentication [recommended] steps using UIWebView on an iOS app.
After entering credentials, hitting login loads a page with following error.
I had a similar problem when I was deleting cookies to make sure the log in screen appeared and not just using the currently logged in user. Try (swift):
let storage = HTTPCookieStorage.shared
storage.cookieAcceptPolicy = .always