Login for iOS app?

Avatar

Avatar

ray_fisher

Avatar

ray_fisher

ray_fisher

15-10-2015

I use Adobe Social for my job and have a login which I use on the web browser, however, I just downloaded the iOS app and can't login with the same credentials, can someone please help?

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Rahsing

Avatar

Rahsing

Rahsing

15-10-2015

Hi Ray,

Please try signing in with your marketing cloud ID instead and see if that works.

Info here

Regards

Rahul

Answers (12)

Answers (12)

Avatar

Avatar

sonali_04

Avatar

sonali_04

sonali_04

23-07-2020

I had similar issue, can someone help with this

 

Regards,

Sonali Srivastava

Avatar

Avatar

PromptCloud

Avatar

PromptCloud

PromptCloud

16-07-2020

This answer really helped me with my skills.

 

Regards,

https://www.promptcloud.com/

Avatar

Avatar

gofloaters

Avatar

gofloaters

gofloaters

16-07-2020

Thanks for the insightful conversation. 

 

Regards

https://gofloaters.com/

Avatar

Avatar

linuxsys

Avatar

linuxsys

linuxsys

28-06-2017

sign in with your cloud ID . This seems work. thank You.

Red hat linux training in chennai | linux training in chennai

Avatar

Avatar

agaricp55115788

Avatar

agaricp55115788

agaricp55115788

15-10-2015

Thank you for the information

Avatar

Avatar

Community_Membe

Avatar

Community_Membe

Community_Membe

15-10-2015

1. General iOS Setup 

Before you add Facebook Login you need to complete the "Getting Started" guide for the Facebook SDK for iOS. Once completed, come back to this doc.

Facebook SDK for iOS - Getting Started

2. Add Login Kit to your Xcode Project

  1. Open ~/Documents/FacebookSDK
  2. Drag the FBSDKLoginKit to Frameworks in Project Navigator.

3. Add Facebook Login Button Code

To add a Facebook-branded login button to your app add the following code snippet to a view controller.

// Add this to the header of your file, e.g. in ViewController.m // after #import "ViewController.h"#import <FBSDKCoreKit/FBSDKCoreKit.h>#import <FBSDKLoginKit/FBSDKLoginKit.h>// Add this to the body@implementation ViewController- (void)viewDidLoad {[super viewDidLoad];FBSDKLoginButton *loginButton = [[FBSDKLoginButton alloc] init];// Optional: Place the button in the center of your view.loginButton.center = self.view.center;[self.view addSubview:loginButton];}@end

Screenshots: Login & Logout Flow

Compile and run your app. If your implementation was completed correctly you should be able to replay the following login and logout flow in your app:

4. Custom Login Button Code

Instead of using the Facebook-branded login button you may want to design a custom layout and behavior. In the following code example we invoke the login dialog using the FBSDKLoginManager and a custom UIButton. You can use any other custom user interface or event handling to invoke the login dialog.

// Add this to the header of your file#import "ViewController.h"#import <FBSDKCoreKit/FBSDKCoreKit.h>#import <FBSDKLoginKit/FBSDKLoginKit.h>// Add this to the body@implementation ViewController- (void)viewDidLoad {[super viewDidLoad];// Add a custom login button to your appUIButton *myLoginButton=[UIButton buttonWithType:UIButtonTypeCustom];myLoginButton.backgroundColor=[UIColor darkGrayColor];myLoginButton.frame=CGRectMake(0,0,180,40);myLoginButton.center = self.view.center;[myLoginButton setTitle: @"My Login Button" forState: UIControlStateNormal];// Handle clicks on the button[myLoginButton addTarget:selfaction:@selector(loginButtonClicked) forControlEvents:UIControlEventTouchUpInside];// Add the button to the view[self.view addSubview:myLoginButton];}// Once the button is clicked, show the login dialog-(void)loginButtonClicked{FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init];[login logInWithReadPermissions: @[@"public_profile"]handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) {if (error) {NSLog(@"Process error");} else if (result.isCancelled) {NSLog(@"Cancelled");} else {NSLog(@"Logged in");}}];}@end

5. Asking for Permissions

When you add Facebook Login, your app can ask someone for permissions on a subset of that person's data.

Read Permissions for Facebook Login Button

For the Facebook-branded login button (FBSDKLoginButton) use the readPermissions property to request additional read permissions.

In your view header file add:

//  ViewController.h#import <FBSDKLoginKit/FBSDKLoginKit.h>@interface ViewController : UIViewController@property (weak, nonatomic) IBOutlet FBSDKLoginButton *loginButton;@end

In your view file add:

// Extend the code sample "1. Add Facebook Login Button Code"// In your viewDidLoad method:loginButton.readPermissions =@[@"public_profile", @"email", @"user_friends"];

Your app will now ask for the person's email address and friend list.

http://www.besanttechnologies.com/training-courses/java-training | http://www.besanttechnologies.com/company/corporate-training#

Avatar

Avatar

agaricp55115788

Avatar

agaricp55115788

agaricp55115788

15-10-2015

Thank you for the informationyesAgaricPro

Avatar

Avatar

Community_Membe

Avatar

Community_Membe

Community_Membe

15-10-2015

1. General iOS Setup 

Before you add Facebook Login you need to complete the "Getting Started" guide for the Facebook SDK for iOS. Once completed, come back to this doc.

Facebook SDK for iOS - Getting Started

2. Add Login Kit to your Xcode Project

  1. Open ~/Documents/FacebookSDK
  2. Drag the FBSDKLoginKit to Frameworks in Project Navigator.

3. Add Facebook Login Button Code

To add a Facebook-branded login button to your app add the following code snippet to a view controller.

// Add this to the header of your file, e.g. in ViewController.m // after #import "ViewController.h"#import <FBSDKCoreKit/FBSDKCoreKit.h>#import <FBSDKLoginKit/FBSDKLoginKit.h>// Add this to the body@implementation ViewController- (void)viewDidLoad {[super viewDidLoad];FBSDKLoginButton *loginButton = [[FBSDKLoginButton alloc] init];// Optional: Place the button in the center of your view.loginButton.center = self.view.center;[self.view addSubview:loginButton];}@end

Screenshots: Login & Logout Flow

Compile and run your app. If your implementation was completed correctly you should be able to replay the following login and logout flow in your app:

4. Custom Login Button Code

Instead of using the Facebook-branded login button you may want to design a custom layout and behavior. In the following code example we invoke the login dialog using the FBSDKLoginManager and a custom UIButton. You can use any other custom user interface or event handling to invoke the login dialog.

// Add this to the header of your file#import "ViewController.h"#import <FBSDKCoreKit/FBSDKCoreKit.h>#import <FBSDKLoginKit/FBSDKLoginKit.h>// Add this to the body@implementation ViewController- (void)viewDidLoad {[super viewDidLoad];// Add a custom login button to your appUIButton *myLoginButton=[UIButton buttonWithType:UIButtonTypeCustom];myLoginButton.backgroundColor=[UIColor darkGrayColor];myLoginButton.frame=CGRectMake(0,0,180,40);myLoginButton.center = self.view.center;[myLoginButton setTitle: @"My Login Button" forState: UIControlStateNormal];// Handle clicks on the button[myLoginButton addTarget:selfaction:@selector(loginButtonClicked) forControlEvents:UIControlEventTouchUpInside];// Add the button to the view[self.view addSubview:myLoginButton];}// Once the button is clicked, show the login dialog-(void)loginButtonClicked{FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init];[login logInWithReadPermissions: @[@"public_profile"]handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) {if (error) {NSLog(@"Process error");} else if (result.isCancelled) {NSLog(@"Cancelled");} else {NSLog(@"Logged in");}}];}@end

5. Asking for Permissions

When you add Facebook Login, your app can ask someone for permissions on a subset of that person's data.

Read Permissions for Facebook Login Button

For the Facebook-branded login button (FBSDKLoginButton) use the readPermissions property to request additional read permissions.

In your view header file add:

//  ViewController.h#import <FBSDKLoginKit/FBSDKLoginKit.h>@interface ViewController : UIViewController@property (weak, nonatomic) IBOutlet FBSDKLoginButton *loginButton;@end

In your view file add:

// Extend the code sample "1. Add Facebook Login Button Code"// In your viewDidLoad method:loginButton.readPermissions =@[@"public_profile", @"email", @"user_friends"];

Your app will now ask for the person's email address and friend list.

http://www.besanttechnologies.com/training-courses/java-training | http://www.besanttechnologies.com/company/corporate-training#

Avatar

Avatar

qwew_tertre

Avatar

qwew_tertre

qwew_tertre

15-10-2015

Nice!

Thanks!

Avatar

Avatar

pop_george

Avatar

pop_george

pop_george

15-10-2015

I have the same problem but I can't find an answer...

I think that it`s a problem from IOS or from Adobe.

Avatar

Avatar

david_roy

Avatar

david_roy

david_roy

15-10-2015

Can't login even though I have an adobe account & can login fine on their website. You can't even use this app, it is only a marketing tool at this point. Completely useless. Don't waist your time. Sure wish apple & adobe would kiss and makeup so I could read my digital editions college books on my iPad, would make my life and studying so much better!http://www.trainingbangalore.in/android-training-in-bangalore.html

Avatar

Avatar

shekhardhiman

Employee

Avatar

shekhardhiman

Employee

shekhardhiman
Employee

15-10-2015

Hi Ray,

Thanks for reaching out to Adobe Community.

Are you getting any specific error while logging in?

Thanks!