Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spotify login error INVALID_CLIENT: Invalid redirect URI android

I am making an application which contain spotify integration, I was followed this link https://developer.spotify.com/technologies/spotify-android-sdk/tutorial/

by the reference of this link I was put "festevo://callback" as callback redirect URI

when I was trying login into spotify every time I was getting same error.

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

    <data
           android:host="callback"
           android:scheme="festevo" />

Please tell me why this happen...

Thank you.

like image 911
Krunal Shah Avatar asked Dec 08 '14 07:12

Krunal Shah


People also ask

How do I Fix an invalid redirect Uri error on Spotify?

When you reach the page that says Invalid redirect URI, check the address bar for the redirect_uri that is trying to be authenticated. in my case, it was my localhost ip so i added that to the spotify configuration and that fixes my issue. This fixed it!! This also worked for me… Hello, I have a different problem with the integration of Spotify…

How do I fix Spotify client ID error?

If still the error occurs simply delete the Spotify app in the dashboard and recreate the new app with a new client id. This thing solved my problem. Sorry, something went wrong. Ya thanks everyone!

What is the URL for authorization_code callback in Spotify?

In the particular case of authorization_code, the callback is taking care of by the context of your localhost, in specific by a express route defined as http://localhost:8888/callback. In your spotify developer dashboard, the redirect URI needs to be defined as http://localhost:8888/callback.

How to redirect a Spotify playlist to another website?

Navigate to your Spotify developer dashboard and open the project you are working on. Next click "edit settings" and look for the redirect URIs field. Put your redirect URI in the field. ex: http://localhost:8888/callback Click save. First. You have to be sure that you're using app.js from authorization_code directory. Second.


1 Answers

I see a couple of possible things that could've gone wrong:

  • It's as simple as that you didn't save the redirect URI after you typed it in. (Double-check My Applications.)
  • You didn't specify it properly in your application's manifest. (Double-check the manifest part in the tutorial)
  • You didn't change the REDIRECT_URI value to festevo://callback as specified in the tutorial.

Hope this solves your issue!

like image 69
Michael Thelin Avatar answered Sep 18 '22 19:09

Michael Thelin