Facebook.FacebookApi.Get C# (CSharp) Method

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
        public JsonObject Get([NotNull] string relativePath)
        {
            if (relativePath == null)
                throw Nre("relativePath");
            return Call(relativePath, HttpVerb.Get, null);
        }

Same methods

FacebookApi::Get ( [ relativePath, string>.[ args ) : JsonObject

Usage Example

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);
        }