Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to logout with facebook c# sdk

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.

like image 843
David Avatar asked Nov 03 '22 03:11

David


1 Answers

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

like image 162
Andreas Thenn Avatar answered Nov 14 '22 11:11

Andreas Thenn