Mini-Apps
Spotify playlist
Hi, I am having trouble embedding a spotify playlist into the spotify mini app. I have copied the link and pasted it in to the mini app – when I open it on my phone it appears initially then gives me an error message. Can you please assist?
Some web applications are not compatible with the “Web page” mini-app, you should try with “Code Embedded” (using the syntax <a href="<myurl>">Some description text</a>
) or “Rich text” mini-app to insert the link.
For embed code you have to get the “Embed” version of the code from Spotify, it looks like this:
<iframe
style="border-radius:12px"
src="https://open.spotify.com/embed/playlist/1Unjfj6lXmT2ddnc5UulZx?utm_source=generator"
width="100%"
height="380"
frameBorder="0"
allowfullscreen=""
allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture"
loading="lazy">
</iframe>
However, Spotify has made changes in their policy, so embedded code will only play in preview mode (up to 30 seconds).