webexception when Facebook.Api.ConnectToFacebook

Sep 3, 2009 at 3:19 PM

Hello

When running the following code in Facebook.Compact (from toolkit 1.7)

Facebook.API.FacebookAPI _lfbAPI = new Facebook.API.FacebookAPI();
_lfbAPI.ApplicationKey = "xxxx";
_lfbAPI.Secret = ""xxxx;
_lfbAPI.ConnectToFacebook();

ConnectToFacebook() generates a WebException with the following details:

InnerException: {"No such host is known"}
Message: "The remote name could not be resolved"

Any idea why?