如何在Windows 8中注销facebook c#sdk?

时间:2013-05-07 03:03:45

标签: windows-8 facebook-c#-sdk facebook-authentication

如何在Windows 8中注销facebook c#sdk? 我使用此代码但无法注销

      var   logoutParameters = new Dictionary<string, object>
                            {
                                                   {"acces_token",App.AccessToken}   , 
                                                   { "next", "http://www.facebook.com" }
      };
      var logoutUrl = _fb.GetLogoutUrl(logoutParameters);
      var logout= WebRequest.Create(logoutUrl);
      await logout.GetResponseAsync();

1 个答案:

答案 0 :(得分:0)

使用此代码:

Facebook.Client.FacebookSessionCacheProvider.Current.DeleteSessionData();