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
Premium
Country
The Netherlands
Device
Desktop PC
Operating System
Windows 11
My Question or Issue
Hello,
I am trying to show my current playing song from Spotify on my portfolio, however, after authorizing with Spotify I get the error shown in the attached image. The redirect_uri I use is registered in the developer's dashboard under my application. The only difference in my application is that it adds language codes to the URI, however, I also whitelisted these in the dashboard, and I still get the same issue.
I also attached a screenshot showing the whitelisted uri's in the dashboard and the route defined in laravel.
I hope someone has an idea of how i could solve this problem, thanks in advance.
Are you sure your website is https://portfolio.development? When I try to go to that URL, I get a ERR_NAME_NOT_RESOLVED error.
Yes, it's a virtual host from laragon and I can go to that domain with no problems.
Sorry I'm answering late.
Can you provide some code you use for your request? The error '400 Bad Request' means there's something wrong with that.
I am using Socialite as a driver for the authentication, here is the code at the endpoint i use to call the accounts.spotify.com/authenticate endpoint.
I can also see in devtools that it calls the /authorize endpoint and redirect to the callback uri:
There's a problem. With Socialite, you can only get basic profile information like id, name, email, avatar and profileUrl. It doesn't support scopes or other functionalities.
You can better use one of these PHP Web API Wrappers:
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…