IOS SDK

From Social ID Developers
Revision as of 18:50, 17 October 2014 by Dirceu.tiegs (Talk | contribs)
Jump to: navigation, search

Contents

Download and Setup the SDK

You can download and setup the SDK using our iOS SDK Setup guide.

Social Login

After setting up the SDK (iOS SDK Setup), add the following statement to your ViewController:

 #import <SocialID/SocialID.h>

Call the following code to make the user log in with Facebook:

 [SIDFacebook logInWithPermissions:@[@"public_profile",@"email",@"user_birthday"] success:^(SIDSignIn *signIn) {
     NSLog(@"Logged in Facebook!");
 } failure:^(NSError *error) {
     // do something
 }];

... and call the following code to make the user log in with Google+:

 [SIDGoogle logInGoogle:^(NSString *accessToken) {
     NSLog(@"Logged in Google!");
 } failure:^(NSError *error) {
     // do something
 }];

Logout

COMING SOON...

Get the user profile

COMING SOON...

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox