Spotify Apps - How to log people out of Facebook

98 Views Asked by At

Logging people in with their Facebook accounts is quite easy with the Spotify API's auth methods. However, I couldn't find any procedure on the API docs for logging people out of Facebook.

Do I have to do this manually, utilizing the Facebook API, or does Spotify provide a way of doing this?

1

There are 1 best solutions below

2
On BEST ANSWER

There is no method to log the user out in the Spotify Apps API. In order to do achieve it, you need to make a request to https://www.facebook.com/logout.php?access_token=<access_token>&next=<next>

where:

  • access_token is the same token you use to log a user in
  • next is a URL that belongs to the same domain as the registered one on Facebook for your app