The remote name could not be resolved: 'api.facebook.com'

Jan 9, 2008 at 7:52 PM
Edited Jan 9, 2008 at 7:58 PM
Hi,

I have just installed the developer kit and got stuck on the quickstart example. I get an error when my code hits the line:
_fbService.CreateSession(authToken);

I checked http://api.facebook.com/restserver.php and http://api.facebook.com/bestserver.php and get this response, so i can definitly see the wesbite.
<?xml version="1.0" encoding="UTF-8" ?>
- <result method="" type="struct">
- <fb_error type="struct">
<code>101</code>
<msg>Invalid API key</msg>
<your_request />
</fb_error>
</result>


Kind Regards,
ET
Jan 10, 2008 at 6:44 AM
I have managed to get past _fbService.CreateSession(authToken); by adding the following code:

System.Net.WebProxy pry = new System.Net.WebProxy("myproxy", 8080);
pry.Credentials = CredentialCache.DefaultCredentials;
WebRequest.DefaultWebProxy = pry;

I now get a session key and the userid, but the very next call times out.
_fbService.GetFriends()

Any ideas why this would be?
Kind Regards
ET