0maru / twitter_login

MIT License
54 stars 54 forks source link

Unhandled Exception: PlatformException(400, Failed to generate request token., Please check your APIKey or APISecret., null) #100

Closed samir-concetto closed 2 years ago

samir-concetto commented 2 years ago

the url :- https://api.twitter.com/oauth/request_token is forbidden or not found in this plugin

0maru commented 2 years ago

https://api.twitter.com/oauth/request_token is valid.

docs: https://developer.twitter.com/ja/docs/authentication/api-reference/request_token code: https://github.com/0maru/twitter_login/blob/master/lib/schemes/request_token.dart#L39:L67

Please check your api key and api secret key.

joao10martins commented 2 years ago

I have the same issue. My api key & secret are good because they've been used in another lib before. AuthResult, RequestToken fields on twitter_login.dart are for example not recognisable by AS. Almost as if they're missing imports.

0maru commented 2 years ago

@samir-concetto @joao10martins I was able to log in with v4.2.2. You might try both login() and loginV2() method to get it to work. If it doesn't work, please run the example project of this plugin and let me know the result.

joao10martins commented 2 years ago

It worked for me after I MANUALLY imported auth_result.dart & request_token.dart into the twitter_login class

samir-concetto commented 2 years ago

It worked for me after I MANUALLY imported auth_result.dart & request_token.dart into the twitter_login class

thanks it's working fine now