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
- (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]; | |
} |
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
- (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]; | |
} |
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
- (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]; | |
} |
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
- (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]; | |
} |
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
#import <Socialize-iOS/Socialize.h> | |
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url { | |
return [Socialize handleOpenURL:url]; | |
} |
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
#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 | |
} |
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
//import the socialize header | |
#import <Socialize/Socialize.h> | |
@interface Controller : UIViewController | |
@property (nonatomic, retain) SocializeActionBar *actionBar; | |
@end |
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
// 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 |
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)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]; | |
} |
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
// 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 |
OlderNewer