Logout redirect facebook

When i use the next URL, enter Facebook, not redirect after that to my site. If i enter again the same URL, redirect directly to my site and when i login again, ask for my user and password and that’s ok. But the usual, is the redirect works, what is the problem?. I got a SPA based in React.

https://miinga.auth0.com/v2/logout?federated&returnTo=https%3A%2F%2Fmiinga.auth0.com%2Flogout%3FreturnTo%3Dhttp%3A%2F%2Flocalhost%3A8000&client_id=MY_SECRET_CLIENT_ID&acess_token=[facebook_access_token]

Edit:

Look here: Logout

![alt text][1]

I try with the way the others logout do:

https://miinga.auth0.com/v2/logout?federated&returnTo=http%3A%2F%2Flocalhost%3A8000&client_id=CLIENT_ID&access_token=[facebook access_token]
  1. ?federated

  2. &returnTo=http%3A%2F%2Flocalhost%3A8000

  3. &client_id=CLIENT_ID

  4. &access_token=[facebook access_token]

But only i get is a redirect fo facebook, and without redirect or a really logout.

At first glance, the URL you’re using does not seem to be what we would expect in this situation; I never actually tried to do something like what’s done in that URL so not sure if its the root cause, but I would start there.

In particular, you have a redirectTo that is again the logout endpoint URL:

https%3A%2F%2Fmiinga.auth0.com%2Flogout%3FreturnTo%3Dhttp%3A%2F%2Flocalhost%3A8000

The normal expectation would be that the returnTo URL would be one directly associated with the client application, in your case, something like:

http%3A%2F%2Flocalhost%3A8000