I'm trying to share my playlist on Spotify Community and it's been keep rejecting my post saying the HTML codes are invalid. However nothing seems wrong to me; preview shows correct, the <iframe> start/end tag is all in order, also the src/width and height attributes are correct...
Could anything be wrong with web site cookies or whatever? Here's my embed code:
'<iframe src="https://open.spotify.com/embed/user/qwerasdfdfghghjk/playlist/1cMXPkwHAjtaVee9WJyenx" width="300" height="380" frameborder="0" allowtransparency="true"></iframe>'
Solved! Go to Solution.
Embed codes are useful for websites and blogs. Here in the community all you need is a simple http address. Copy the http link from your client (or copy song link on web player) and paste it here and it will be turned into a play button. 🙂
Note: http link looks like (don't mind the asterisks):
1. https:*/*/open.spotify.com/album/albumcode (if an album)
2. https*:/*/open.spotify.com/user/randomuser/playlist/playlistcode (if playlist)
3. http*s://*open.spotify.com/track/trackcode (if a track)
Artists don't turn into play buttons.
Similar thing works with Spotify URI which is a bit different: see this thread. You can actually use a :small tag to make a small button. You can't do it with http links.
Let me know if you have more questions!