Search code examples
iphone-sdk-3.0sdklinkedin-api

Try to integrate LinkedIn in iPhone application


I have download the source from https://github.com/ResultsDirect/LinkedIn-iPhone . Demo working fine, and try to use in my application.

I have followed all the steps already whatever required as mention here in post ...

But I have getting the error

"_OBJC_CLASS_$_RDLinkedInEngine", referenced from:
"_OBJC_CLASS_$_RDLinkedInAuthorizationController", referenced from:

When I comment the lines of RDLinkedInEngine and RDLinkedInAuthorizationController then error are removed

- (void)loadView {
    [super loadView];
//    rdEngine = [[RDLinkedInEngine engineWithConsumerKey:kOAuthConsumerKey consumerSecret:kOAuthConsumerSecret delegate:self] retain];
}
- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
//    if( !rdHasAppeared ) {
//        UIViewController* controller = [RDLinkedInAuthorizationController authorizationControllerWithEngine:rdEngine delegate:self];
//        if( controller ) {
//            [self presentModalViewController:controller animated:YES];
//            rdHasAppeared = YES;
//        }
//        else {
//            NSLog(@"Already authenticated");
//        }
//    }
}

I my application I have already integrated MGTwitterEngine from source https://github.com/bengottlieb/Twitter-OAuth-iPhone Which is wokring ok.

Amit Battan


Solution

  • most probably you need to add some static library (.a file)... or src folder itself from linkedIn source...