尽管提供了回调URL,但未批准回调URL [英] Callback url not approved despite being provided Twitter Api
本文介绍了尽管提供了回调URL,但未批准回调URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Twitter控制台中,我链接了来自Firebase的回调URL.但是,当我尝试使用Twitter进行身份验证时,出现错误:
In the twitter console I have a callback url from firebase linked. Yet when I try to authenticate using twitter I get the error:
"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))
怎么回事?我已经尝试了所有方法,但除了我,互联网上似乎没有其他人遇到这个问题?
Whats going on? I have tried everything , and no one else on the internet seems to have this issue but me?
推荐答案
我面临着同样的问题,我们不需要在代码端进行更改,我们只需要更改twitter开发人员帐户中的某些设置(经过测试的解决方案)
您需要使用以下格式在回调URL 中添加使用者/api键
You need to add the consumer/api key in Callback URL using below format
引用链接: https://developer.twitter.com/en/docs /basics/callback_url.html
twitterkit- 消费者/api键://
twitterkit-consumer/api key://
您需要在 info.plist
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>twitterkit-your Consumer Key (API Key)</string>
</array>
</dict>
</array>
这篇关于尽管提供了回调URL,但未批准回调URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文