Skip to content

Instantly share code, notes, and snippets.

@jagbolanos
Created February 6, 2012 21:58
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 jagbolanos/1755208 to your computer and use it in GitHub Desktop.
Save jagbolanos/1755208 to your computer and use it in GitHub Desktop.
Publish photo to facebook
- (void) publishToFacebook:(NSData*)image withMessage:(NSString*)message {
NSMutableDictionary *params = [[NSMutableDictionary alloc] init];
[params setValue:message forKey:@"message"];
[params setValue:image forKey:@"source"];
[[[Util sharedInstance] facebook] requestWithGraphPath:@"me/photos"
andParams:params
andHttpMethod:@"POST"
andDelegate:self];
[params release];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment