Piroro-hs / react-native-twitter

A Twitter API client library for React Native. Currently not maintained as my main motivation of creating this library was to use the User Streams API.
MIT License
39 stars 20 forks source link

Twitter Callback URL not approved #20

Closed ahmedu007 closed 6 years ago

ahmedu007 commented 6 years ago

Possible Unhandled Promise Rejection (id: 0): Error: <?xml version="1.0" encoding="UTF-8"?>Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings

Hello, Thanks for this library. It was working perfectly fine up until a few weeks ago. Now every time I click on login to twitter, instead of linking an external webpage i get this error. I've tried to check the callback URL, whitelisted all the endpoints and still the same. For some reason I'm unable to point to sign in with twitter

Any help or suggestions?

Regards

ahmedu007 commented 6 years ago

A bit of investigation revealed that the function getRequestToken is throwing an error. That ends up with requestToken and requestTokenSecret being undefined. This is because of the new GDPR update on the twitter api. Not sure on how to fix this. Any suggestions?

ahmedu007 commented 6 years ago

Okay I've managed to fix it. Seems like it was a small fix. You need to add the name of your app from the intent-filter of the android manifest to the list of Callback URL's on the twitter's app like your_app_name:// and it works again. Hope this helps someone