1

Resolved

InvalidCastException on accessing SessionInfo.Expires property

description

An InvalidCastException is raised when the Expires property of SessionInfo class is accessed. It occurs at the following line:
 
if (this.InnerDictionary.ContainsKey("expires")) return (DateTime)this.InnerDictionary["expires"];
 
STEPS TO REPRODUCE:
context = new FacebookDesktopContext(api_key, secret_key);
authToken = context.Auth.CreateToken();
<<navigate to authentication URL>>
session = context.Auth.GetSession(authToken);
context.Friends.Get(); // throws InvalidCastException
 
API Build: Alpha 2.0

comments

DanielSchaffer wrote May 22, 2009 at 12:24 AM

This is actually already fixed in source, I just haven't put a new release together yet.

wrote May 22, 2009 at 12:24 AM

wrote Aug 3, 2009 at 2:48 PM

wrote Feb 14, 2013 at 7:50 PM

wrote May 16, 2013 at 9:55 AM

wrote May 16, 2013 at 9:55 AM

wrote Jun 14, 2013 at 7:15 AM