0maru / twitter_login

MIT License
54 stars 54 forks source link

PlatformException(400, Failed to generate request token., Please check your APIKey or APISecret., null) #112

Closed JobGetabu closed 1 year ago

JobGetabu commented 1 year ago

After correct implementation

Worked for a while then started showing

PlatformException(400, Failed to generate request token., Please check your APIKey or APISecret., null)

0maru commented 1 year ago

@JobGetabu Are you regenerating APIKey in Twitter Developers?

Appstute-Arati commented 1 year ago

Any update on above issue?

mjolnir91 commented 1 year ago

I was having the exact same issue. All I had to do was restart the android emulator and it started working.

0maru commented 1 year ago

@Appstute-Arati no.

Verification is difficult due to lack of information. If you need to investigate, please provide a sample project.

flutter-dev-Amr commented 1 year ago

i'm facing the same issue, any updates?

bleszerd commented 1 year ago

I was having the same problem and I noticed that the problem was the callback url.

On Android: Make sure the callback you set in your Twitter app's settings is exactly as it is in the Android Manifest

<!-- ... -->

 <intent-filter>
    <action android:name="android.intent.action.VIEW" />

    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />

    <!-- match "application://callback" URL -->
    <data
        android:host="callback"
        android:scheme="application" />

<!-- ... -->

Unfortunately I can't help with iOS