Type in your question below and we'll check to see what answers we can find...
Loading article...
Submitting...
If you couldn't find any answers in the previous step then we need to post your question in the community and wait for someone to respond. You'll be notified when that happens.
Simply add some detail to your question and refine the title if needed, choose the relevant category, then post.
Before we can post your question we need you to quickly make an account (or sign in if you already have one).
Don't worry - it's quick and painless! Just click below, and once you're logged in we'll bring you right back here and post your question. We'll remember what you've already typed in so you won't have to do it again.
Plan
Free
Country
CZ
Device
Chrome, Firefox, PHP
Operating System
Fedora Linux
My Question or Issue
Hi,
I'm sending a request to Spotify to authorize. The goal is a response with user e-mail. It goes to Spotify login, I log through Facebook, it shows INVALID_CLIENT: Invalid redirect URI.
And the final URL is:
https://accounts.spotify.com/authorize?scope=user-read-email&response_type=code&redirect_uri=https%3...
I follow this flow:
https://github.com/jwilsson/spotify-web-api-php
I believe the URL must contain the "code" parametr. I also think it must redirect to the given URL. The request ends up with the above mentioned final URL with no any redirect (result code 400 ).
Could you please help me out?
Solved! Go to Solution.
Hey @vaclav20210, thanks for reaching out on the Developer Community!
Let's dive right into this. It sounds like the redirect_url parameter you're passing in the request URL (https://accounts.spotify.com/authorize?scope=user-read-email&response_type=code&redirect_uri=https%3...) isn't specified in the App Settings on the Developer Dashboard.
Could you double-check that the right redirect URL is specified in your app's settings? (make sure the protocol/ports match too). Let me know how you get on!
Have a great day,
Hubo
Hi, and thanks for the response. Yes, I double checked. I created an app, filled up website, redirect URL ending with /.
Hey there you, Yeah, you! 😁 Welcome - we're glad you joined the Spotify Community! While you here, let's have a fun game and get…