-
Notifications
You must be signed in to change notification settings - Fork 213
Open
Description
Login with twitter gives an error "Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings".
Previously this was working fine.
My configuration object looks like:
{
consumer_key: TWITTER_OAUTH_KEY,
consumer_secret: TWITTER_OAUTH_SECRET,
}
Later I found that there happened a change recently in twitter api.
My callback url added in twitter app looks like "http://samplereactapp.com". This issue happens for both android an ios app. How can I resolve this issue? Please help me.
The problem is that the Twitter APps UI does not let you specify a non-http callback URL.
Thanks in advance.
CapitanRedBeard
Activity
joncursi commentedon Jul 14, 2018
Related: adamjmcgrath/react-native-simple-auth#100
maxcodes commentedon Oct 10, 2018
Following the advice in this comment solved this for me: #42
keenubee commentedon Nov 20, 2018
Seems like Twitter oAuth callback can't resolve on iOS now.
I've set up MyApp scheme both in URL Types and Callback URL on Twitter (MyApp://), i can successfully log into Twitter and authorize my app but after that i can't get any response in .then() (or catch()).
Callback in AppDelegate is correct (Facebook works fine).
Any advice?
Johncy1997 commentedon Jun 3, 2019
Am not able to use this npm for social auth.Nothing is working fine. I did all steps mentioned there..Its outdated
Julious1994 commentedon Dec 27, 2020
I got the fix
Add callback urls in twitter account with your URL schemes added in URL types of xcode project.
For ex. URL Schemes: docviewer
IN twitter: docviewer://
you can check callback_url in logo also when you run ios app.
But same problem like @keenubee