Get() public method

Makes a Facebook API GET request.
is null.
public Get ( [ relativePath ) : JsonObject
relativePath [ The path for the call, e.g. /username
return JsonObject
Esempio n. 1
0
        static void Main(string[] args)
        {
            // Get an access token in some manner.
            // By default you can only get public info.
            string token = null;

            var api = new FacebookApi(token, CultureInfo.InvariantCulture);
            //api.Culture = new CultureInfo("en-us");

            JsonObject me = api.Get("/4");
            Console.WriteLine(me.Dictionary["name"].String + " " + me.Dictionary["gender"].String);
        }