Nov 9, 2009 at 7:02 PM
Edited Nov 9, 2009 at 7:03 PM


First of all i want to say thanx for this toolkit.

It's the first time i write here.  I have a problem,i had many coffees ( :P )but i can't find what it goes wrong. I really think that is something silly but I can't find it!

I do a query via FQL and i want to read the function's returned XML document, so i wrote these lines of code:



facebook.API facebookAPI = new facebook.API();
            facebook.fql facebook = new facebook.fql(facebookAPI);

            facebookAPI.ApplicationKey = facebookApiKey;
            facebookAPI.Secret = facebookSecretKey;

            string facebookUsername = "facebook name";

            string query = "SELECT uid FROM user WHERE name=' "+facebookUsername+" ' ";

            XmlTextReader reader = new XmlTextReader(facebook.query(query));
            while (reader.Read())
                if (reader.Name == "uid" && reader.NodeType != XmlNodeType.EndElement)


I build the project without errors but when i run it, the following error occurs:


Illegal characters in path.

the error occurs in this line:

XmlTextReader reader = new XmlTextReader(facebook.query(query));