Skip to content

Instantly share code, notes, and snippets.

View imosquera's full-sized avatar

Isaac Mosquera imosquera

View GitHub Profile
@imosquera
imosquera / CommentUI.m
Created October 6, 2011 00:35 — forked from SPopenko/CommentUI.m
SocializeSDK iOS Code Snippets part 2
- (IBAction)commentsButtonPressed {
NSString *entityUrlString = @"http://www.example.com/object/1234";
SocializeCommentsTableViewController* commentsController =
[[[SocializeCommentsTableViewController alloc] initWithNibName:@"SocializeCommentsTableViewController"
bundle:nil
entryUrlString:entityUrlString] autorelease];
[self.navigationController pushViewController:commentsController animated:YES];
}
@imosquera
imosquera / Authentication.m
Created October 6, 2011 00:09 — forked from SPopenko/Authentication.m
SocializeSDK iOS Code Snippets
// invoke the call
[socialize authenticateWithApiKey:@"YourApiKey" apiSecret:@"YourApiSecret"];
#pragma mark SocializeServiceDelegate implementation
// implement the delegate
-(void)didAuthenticate:(id<SocializeUser>)user {
NSLog(@"Authenticated");
}
// if the authentication fails the following method is called
@imosquera
imosquera / CommentUI.m
Created September 15, 2011 04:08 — forked from FawadHa1der/CommentUI.m
SocializeSDK iOS Code Snippets part 2
//create a URL for your entity. This must be a unique URL but can return a 404
NSString *entityUrlString = @"http://www.example.com/object/1234";
// Allocate memory for the instance
SocializeCommentsTableViewController* commentsController = [[[SocializeCommentsTableViewController alloc] initWithNibName:@"SocializeCommentsTableViewController" bundle:nil entryUrlString:entityUrlString] autorelease];
[self.navigationController pushViewController:commentsController animated:YES];