Spring Social's Facebook API binding uses Facebook's Graph API and there is no way that I'm aware of that you can logout a user via the Graph API. Likewise with Twitter and other providers However...
You can accomplish Facebook logout by redirecting to the following URL:
Code:
https://www.facebook.com/logout.php?next=YOUR_REDIRECT_URL&access_token=USER_ACCESS_TOKEN
You can also log a user out of FB using FB's JavaScript API by calling FB.logout() from the client-side.
So, after the user is logged out of your app, you could follow that up with a redirect to that FB URL.
I'm not sure that this is necessarily a good thing to do, however. I would think that most users would be a bit upset to find out that by logging out of your app that they are also logged out of Facebook.
Craig Walls
Spring Social Project Lead