Skip to content

Instantly share code, notes, and snippets.

@prabirshrestha
Created March 21, 2011 13:16
Show Gist options
  • Save prabirshrestha/879434 to your computer and use it in GitHub Desktop.
Save prabirshrestha/879434 to your computer and use it in GitHub Desktop.
var result = fb.Batch(
new FacebookBatchParameter { HttpMethod = HttpMethod.Get, Path = "/4" },
new FacebookBatchParameter(HttpMethod.Get, "/me/friends", new Dictionary<string, object> { { "limit", 10 } }) { Data = new { name = "friends", omit_response_on_success = false } },
new FacebookBatchParameter("/me", new { fields = new[] { "id", "name" } }),
new FacebookBatchParameter("/me/feed", new { limit = 10 }),
new FacebookBatchParameter(HttpMethod.Post, "/me/feed", new { message = "test status update" }));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment