我无法使用instagram登录。我收到错误消息-“开发人员角色不足”

问题描述 投票:0回答:1

我做错了什么?

窗口打开并显示给我:{“ error_type”:“ OAuthException”,“ code”:400,“ error_message”:“开发人员角色不足”}

   var oauthswift = OAuth2Swift(
        consumerKey:    "529815800985564",
        consumerSecret: "3ad7d985faad1ddd06acba6b2227d0da",
        authorizeUrl:   "https://api.instagram.com/oauth/authorize",
        responseType:   "code"
    )

    let handle = oauthswift.authorize(
        withCallbackURL: URL(string: "https://badyi.github.io")!,
        scope: "user_profile,user_media", state:"1") { result in
        switch result {
        case .success(let (credential, response, parameters)):
          print(credential.oauthToken)
          // Do your request
        case .failure(let error):
          print(error.localizedDescription)
        }
    }
ios swift oauth oauth-2.0 instagram-api
1个回答
0
投票
转到角色> Instagram用户并添加您的Instagram帐户。然后转到https://www.instagram.com/accounts/manage_access/从您的应用程序接受Tester邀请。

Instagram Display API Insufficient Developer Role

© www.soinside.com 2019 - 2024. All rights reserved.