react-native-oauth icon indicating copy to clipboard operation
react-native-oauth copied to clipboard

Twitter Callback URL is no longer working

Open joncursi opened this issue 7 years ago • 5 comments

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.

https://twittercommunity.com/t/action-required-sign-in-with-twitter-users-must-whitelist-callback-urls/105342

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.

joncursi avatar Jul 13 '18 16:07 joncursi

Related: https://github.com/adamjmcgrath/react-native-simple-auth/issues/100

joncursi avatar Jul 14 '18 23:07 joncursi

Following the advice in this comment solved this for me: https://github.com/fullstackreact/react-native-oauth/issues/42

maxcodes avatar Oct 10 '18 20:10 maxcodes

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?

keenubee avatar Nov 20 '18 11:11 keenubee

Am not able to use this npm for social auth.Nothing is working fine. I did all steps mentioned there..Its outdated

Johncy1997 avatar Jun 03 '19 14:06 Johncy1997

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

Julious1994 avatar Dec 27 '20 14:12 Julious1994