views:

53

answers:

1

I have done the authorisation step of LinkedIn-iphone API, and the app comes to the screenshot:


where to use the LinkedIn PIN

But the 'close' button does not respond, and no where to use the authorised PIN.

Because it is not finally authorised, the methods like

- (void)linkedInEngine:(RDLinkedInEngine *)engine requestSucceeded:(RDLinkedInConnectionID *)identifier withResults:(id)results {
 NSLog(@"++ LinkedIn engine reports success for connection %@\n%@", identifier, results);
}

- (void)linkedInAuthorizationControllerSucceeded:(RDLinkedInAuthorizationController *)controller {
 NSLog(@"Authentication succeeded.");
 NSLog(@"Fetching current user's profile on connection %@", [controller.engine profileForCurrentUser]);
 [rdEngine updateStatus:@"when can you update me??"];
}

do not run.

So the LinkedIn API is stuck there.

Anyone find the problem and solution please?

+1  A: 

The application will require you to fill in your API and Secret keys from LinkedIn. Your app should be designated as a mobile application, and the OAuth Redirect URL must be set to: http://linkedin_oauth/success

Nipun
I have the API and secret keys ("authorized GRACENav" in the screenshot). Could you show the example code where I should put the "http://linkedin_oauth/success" as OAuth Redirect URL in my .m please?
lionfly
Thanks I got what you said. The OAuth Redirect URL should be put in the application on LinkedIn web site, not in the iPhone App itself. Now the [rdEngine updateStatus:@"string"] can update LinkedIn activity. But seems the status only allow 140 characters like Twitter.
lionfly