Reputation: 1709
I'm writing one wp8 application which uses the facebook c# sdk. Everything is going well but one thing won't work (and it drive me crazy) : I can not log out the user.
I tried:
var logoutParameters = new Dictionary<string, object>
{
{ "next", loginUrl }
};
var logoutUrl = _facebookClient.GetLogoutUrl(logoutParameters);
also,
var logoutUrl = fb.GetLogoutUrl(new {access_token = "...", next = "...." });
and,
https://www.facebook.com/logout.php?next=[redirect_uri]&access_token=[access_token]
Regards.
Upvotes: 5
Views: 3433
Reputation: 3440
Replace loginUrl
with "http://www.facebook.com":
Like this:
var logoutParameters = new Dictionary<string, object>
{
{ "next", "http://www.facebook.com" }
};
var logoutUrl = _facebookClient.GetLogoutUrl(logoutParameters);
Upvotes: 0
Reputation: 36
Within WP8 you can clear the cookies with WebBrowser.ClearCockiesAsync()
Maybe this link will help:
http://www.developer.nokia.com/Community/Wiki/Integrate_Facebook_to_Your_Windows_Phone_Application
Upvotes: 2