public
Last active

  • Download Gist
Example.cs
C#
1 2 3 4 5
var fb = new FacebookClient("access_token");
 
var result = fb.Get<FBUser1>("/me");
 
string name = result.Name;
FBUser1.cs
C#
1 2 3 4
public class FBUser1 {
public string name { get; set; }
public string first_name { get; set; }
}
FBUser2.cs
C#
1 2 3 4 5 6
public class FBUser2 {
[DataMember(Name="name")]
public string Name { get; set; }
[DataMember(Name="first_name")]
public string FirstName { get; set; }
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.