Created
April 6, 2011 20:35
-
-
Save ntotten/906471 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fb = new FacebookClient("access_token"); | |
var result = fb.Get<FBUser1>("/me"); | |
string name = result.Name; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FBUser1 { | |
public string name { get; set; } | |
public string first_name { get; set; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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