Skip to content

Instantly share code, notes, and snippets.

View nwg's full-sized avatar

Nathaniel W Griswold nwg

  • Greater Milwaukee Area
View GitHub Profile
- (IBAction)commentsButtonPressed {
//create an entity that is unique with your application.
NSString *entityUrlString = @"http://www.example.com/object/1234";
UIViewController *commentsController = [SocializeCommentsTableViewController socializeCommentsTableViewControllerForEntity:_textField.text];
[self presentModalViewController:commentsController animated:YES];
}
- (IBAction)commentsButtonPressed {
//create an entity that is unique with your application.
NSString *entityUrlString = @"http://www.example.com/object/1234";
UIViewController *commentsController = [SocializeCommentsTableViewController socializeCommentsTableViewControllerForEntity:entityUrlString];
[self presentModalViewController:commentsController animated:YES];
}
- (IBAction)commentsButtonPressed {
//create an entity that is unique with your application.
NSString *entityUrlString = @"http://www.example.com/object/1234";
UIViewController *commentsController = [SocializeCommentsTableViewController socializeCommentsTableViewControllerForEntity:entityUrlString];
[self presentModalViewController:commentsController animated:YES];
}
- (IBAction)commentsButtonPressed {
//create an entity that is unique with your application.
NSString *entityUrlString = @"http://www.example.com/object/1234";
UIViewController *commentsController = [SocializeCommentsTableViewController socializeCommentsTableViewControllerForEntity:entityUrlString];
[self presentModalViewController:commentsController animated:YES];
}
#import <Socialize-iOS/Socialize.h>
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {
return [Socialize handleOpenURL:url];
}
#import <Socialize-iOS/Socialize.h>
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
//set the FB App Id, you can find your FB app Id here: https://developers.facebook.com/apps
[Socialize storeFacebookAppId:@"YOUR FB APP ID"];
//your extra code goes here
}
//import the socialize header
#import <Socialize/Socialize.h>
@interface Controller : UIViewController
@property (nonatomic, retain) SocializeActionBar *actionBar;
@end
@nwg
nwg / Authentication.m
Created November 16, 2011 18:06 — forked from FawadHa1der/Authentication.m
SocializeSDK iOS Code Snippets
// invoke the call
[socialize authenticateWithApiKey:@"YourApiKey" apiSecret:@"YourApiSecret"];
#pragma mark SocializeServiceDelegate implementation
// implement the delegate
-(void)didAuthenticate{
NSLog(@"Authenticated");
}
// if the authentication fails the following method is called
- (void)viewDidLoad
{
[super viewDidLoad];
self.actionBar = [SocializeActionBar actionBarWithUrl:@"http://www.example.com/object/1234" presentModalInController:self];
self.actionBar.noAutoLayout = YES;
self.actionBar.view.frame = CGRectMake(0, 400, 320, SOCIALIZE_ACTION_PANE_HEIGHT)
[self.view addSubview:self.actionBar.view];
}
@nwg
nwg / Authentication.m
Created December 6, 2011 00:10 — forked from FawadHa1der/Authentication.m
SocializeSDK iOS Code Snippets
// invoke the call
[socialize authenticateWithApiKey:@"YourApiKey" apiSecret:@"YourApiSecret"];
#pragma mark SocializeServiceDelegate implementation
// implement the delegate
-(void)didAuthenticate{
NSLog(@"Authenticated");
}
// if the authentication fails the following method is called