This project is read-only.
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 1:24 AM

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

wrote May 22, 2009 at 1:24 AM

wrote Aug 3, 2009 at 3:48 PM

wrote Feb 14, 2013 at 8:50 PM

wrote May 16, 2013 at 10:55 AM

wrote May 16, 2013 at 10:55 AM

wrote Jun 14, 2013 at 8:15 AM