facebook-csharp-sdk / facebook-winclient-sdk

Facebook SDK for Windows & Windows Phone
http://facebooksdk.net
Apache License 2.0
61 stars 139 forks source link

Exception while accessing Facebook.Client.Session.ActiveSession.CurrentAccessTokenData #80

Open WheretIB opened 9 years ago

WheretIB commented 9 years ago

On access to Facebook.Client.Session.ActiveSession.CurrentAccessTokenData, GetSessionData() might throw an exception: https://github.com/facebook-csharp-sdk/facebook-winclient-sdk/blob/master/Source/Facebook.Client/Session.cs#L184

There is an error in XML document (2, 2). at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, Object events) at System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream) at Facebook.Client.AccessTokenDataIsolatedStorageCacheProvider.GetSessionData() at Facebook.Client.Session.get_CurrentAccessTokenData()

Broken session data will block further login attempts.