gpt4 book ai didi

ios - 使用 UIWebView 在 iOS 应用程序中登录 Instagram 时出错

转载 作者:技术小花猫 更新时间:2023-10-29 10:53:04 24 4
gpt4 key购买 nike

我正在关注 Instagram authentication [推荐] 在 iOS 应用程序上使用 UIWebView 的步骤。输入凭据后,点击登录会加载一个页面,并出现以下错误。

This page could not be loaded. If you have cookies disabled in your browser, or you are browsing in private mode, please try enabling cookies or turning off private mode, and then retrying your action.

而且,这只会在首次运行身份验证步骤时发生;在下一次尝试中,一切都像丝绸一样顺畅。我得到后缀为重定向 url 的代码,并使用它请求访问 token 。

截图:

enter image description here

已经有另一个问题here但这没有帮助。

编辑:似乎是 Cookies 问题。不过,我还没能修复它。

最佳答案

当我删除 cookie 以确保出现登录屏幕而不仅仅是使用当前登录的用户时,我遇到了类似的问题。尝试(快速):

let storage = HTTPCookieStorage.shared
storage.cookieAcceptPolicy = .always

关于ios - 使用 UIWebView 在 iOS 应用程序中登录 Instagram 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37660981/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com