在 Twitter 控制台中,我有一个来自 firebase 的回调 url 链接。然而,当我尝试使用 twitter 进行身份验证时,出现错误:
"Request failed: forbidden (403)" UserInfo={NSLocalizedFailureReason=Twitter API error : <?xml version="1.0" encoding="UTF-8"?><errors><error code="415">Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings</error></errors> (code (null))
这是怎么回事?我已经尝试了一切,除了我之外,互联网上似乎没有其他人有这个问题?
我面临同样的问题,我们不需要在代码方面进行更改,我们只需要更改 Twitter 开发人员帐户中的一些设置(经过测试的解决方案)
您需要添加consumer/api密钥回调地址使用以下格式
参考链接:https://developer.twitter.com/en/docs/basics/callback_url.html https://developer.twitter.com/en/docs/basics/callback_url.html
推特套件-消费者/API 密钥://
你需要添加twitterkit-您的消费者密钥 in 信息表
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>twitterkit-your Consumer Key (API Key)</string>
</array>
</dict>
</array>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)