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
//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]; |
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:(id<SocializeUser>)user { | |
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
- (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]; | |
} |
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
[socialize getEntityByKey:@"www.techcrunch.com"]; | |
#pragma mark SocializeServiceDelegate | |
//if the entity does not exist | |
-(void)service:(SocializeService*)service didFail:(NSError*)error{ | |
} |
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/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"]; | |
//set your app url. You can find your app id from the appstore. Socialize uses this app url to advertise | |
//your app when sharing to social networks like facebook and twitter | |
[Socialize storeApplicationLink:@"http://itunes.apple.com/us/app/yourappname/id012345689"]; |
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/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 the socialize header | |
#import <Socialize/Socialize.h> | |
@interface YourCustomViewController : 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
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
// ... | |
[Socialize setEntityLoaderBlock:^(UINavigationController *navigationController, id<SocializeEntity>entity) { | |
NSLog(@"Add your application entity load object"); | |
}]; | |
} |
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
#!/bin/bash | |
set -e | |
set -o pipefail | |
# Add user to k8s using service account, no RBAC (must create RBAC after this script) | |
if [[ -z "$1" ]] || [[ -z "$2" ]]; then | |
echo "usage: $0 <service_account_name> <namespace>" | |
exit 1 | |
fi |
OlderNewer