Created
February 6, 2012 21:58
-
-
Save jagbolanos/1755208 to your computer and use it in GitHub Desktop.
Publish photo to facebook
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
- (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