代码之家  ›  专栏  ›  技术社区  ›  RiTeSh

iOs Twitter登录(Swift)获取用户身份验证令牌时出错。错误:请求失败:禁止(403)

  •  -1
  • RiTeSh  · 技术社区  · 6 年前

    我试图在我的应用程序中使用twitter登录,但我遇到了一个错误

    FirebaseProject[9536:57007] [TwitterKit]
    Error obtaining user auth token.
    error: Request failed: forbidden (403)
    

    Console log

    还有我的信息。普利斯特

    info.plist

    和AppDelegate。敏捷的

         func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
           return TWTRTwitter.sharedInstance().application(app, open: url, options: options)
        }
        func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    
            Thread.sleep(forTimeInterval:3)
            IQKeyboardManager.shared.enable = true
            FirebaseApp.configure()
            TWTRTwitter.sharedInstance().start(withConsumerKey:"4-----L", consumerSecret:"bc----------------------b")
    

    0 回复  |  直到 6 年前