Callback url not approved despite being provided Twitter Api
I face same issue we no need to change in code side, we just need to change some setting in developer account of twitter (tested solution)
You need to add the consumer/api key in Callback URL using below format
Ref link : https://developer.twitter.com/en/docs/basics/callback_url.html
twitterkit-consumer/api key://
You need to add twitterkit-yourConsumerKey in 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>
Callback URL not approved by Twitter
Twitter recently (in May 2018) enforced that sign-in-with-Twitter users must whitelist callback URLs for security reasons (see the announcement).
This means callback URLs have to be explicitly and identically set up for all supported third-party applications. You can setup the callback URLs in your Twitter's application setup page: https://apps.twitter.com
For example, if your callback URL is http://localhost:8080/myApp/signin/twitter
, you must add it to the list of Callback URLs in your Twitter's application setup page exactly as it is: http://localhost:8080/myApp/signin/twitter
See also the documentation on Twitter callback URLs.
Twitter API not accepting callback URL for Android App
It seems the problem was that I had my app configured as Client and it had to be Browser type even though its a native client app on android.
Callback URL Twitter API not functioning and authorizing
From the Tweepy documentation here:
The PIN-based OAuth flow can be used by setting the callback parameter to "oob":
import tweepy
oauth1_user_handler = tweepy.OAuth1UserHandler(
"API / Consumer Key here", "API / Consumer Secret here",
callback="oob"
)
There is no question of callback if you use this authentication method.
Why does Twitter OAuth reject request token request with message The given URL is considered malware?
As stated in my comment on the question, the cause was a typo in the callback URL I was providing in the request. The URL I was providing was
http://localhost::8084/authorize/complete/twitter
with an accidental second colon before the port. My bad.
Related Topics
Instagram Explorer Searchbar and Tableview
Workarounds for Generic Variable in Swift
How to Create Right Angle View in Swift
How to Make Swiftui Uiviewrepresentable View Hug Its Content
Is This Safe to Call Wait() of Dispatchsemaphore Several Times at One Time
How to Set Realtime Thread in Swift
How to Convert Curl Command to Swift
Limit Rectangle to Screen Edge on Drag Gesture
Swift:How to Handle a Lot of Textures in Memory
Cant Change Navigation Bar Height iOS 11
Scenekit Won't Scale a Dynamic Body
Correct Way to Call "Realloc" in Swift with a Float Array
How to Replace Limited Number of Occurrences in String
Firebase References Undeclared
iOS Swift Didbegincontact Not Being Called
Nsposixerrordomain When Binding to Socket on MACos 10.12
Accessing Swift Set Elements by Their Hash Value
Is There a Technical Reason to Use Swift's Caseless Enum Instead of Real Cases