Including a Follow button on your web page enables a visitor to click it and thereby add either the artist or another user to the visitor’s own profile.

Note:

  • The Follow button does not support following a playlist, as of yet. However, by using the follow a playlist endpoint, you can build a custom button to perform a follow functionality of a specific playlist. To include such a custom Follow button in your website, register your companion application on your Dashboard and change the way the proxy JSFiddle sends the access token.
  • Your site visitors who do not have a Spotify account, are prompted to choose whether they want to create one, either directly or through Facebook. Site visitors who have a Spotify account but are not logged in, are prompted to do so either directly or through Facebook.
  • The Follow button does not have any events defined, nor does it listen for any. Following or unfollowing can only be triggered by the user clicking the button.
  • Currently you cannot change the Follow button design other than switching between the light and dark themes. By using the Follow Endpoints you can implement a custom version of the button.

To Add a Spotify Button:

  1. Retrieve the code for the Spotify Follow Button widget.
  2. Add the code to the artist page.
  3. Obtain the link you need for the widget.
    • a. In the Spotify Desktop Player, or in the Spotify Web Player, search for the artist or user you want to link. In this example, we are using Carly Rae Jepsen. Then open the artist page shown in the search results.
    • b. Click the More icon More button.
    • c. In the Share section select Copy Spotify URI or Copy Artist Link:

      Adding a Button

  4. Paste the link into the Spotify HTTP Link box in the generator: Enter HTTP Link
  5. See the Preview change to include the Follow Button.
  6. See beneath the button preview the Embed code. Copy this code and paste it into your HTML file.
  7. Save the page and open it again in a browser. You should see this: Adding a Follow Button to the Artist Page