Skip to content

Instantly share code, notes, and snippets.

@ntotten
Created April 6, 2011 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ntotten/906471 to your computer and use it in GitHub Desktop.
Save ntotten/906471 to your computer and use it in GitHub Desktop.
var fb = new FacebookClient("access_token");
var result = fb.Get<FBUser1>("/me");
string name = result.Name;
public class FBUser1 {
public string name { get; set; }
public string first_name { get; set; }
}
public class FBUser2 {
[DataMember(Name="name")]
public string Name { get; set; }
[DataMember(Name="first_name")]
public string FirstName { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment