在iPhone App上通过LinkedIn API授权后无法确认

lio*_*fly 3 api oauth objective-c linkedin

我已完成LinkedIn-iphone API的授权步骤,该应用程序进入屏幕截图:


在哪里使用LinkedIn PIN

但是"关闭"按钮没有响应,也没有使用授权PIN的位置.

因为它没有最终授权,方法就像

- (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??"];
}
Run Code Online (Sandbox Code Playgroud)

别跑.

所以LinkedIn API被困在那里.

有人找到问题和解决方案吗?

小智 5

该应用程序将要求您从LinkedIn填写您的API和密钥.您的应用应被指定为移动应用,并且OAuth重定向网址必须设置为: http:// linkedin_oauth/success

  • 谢谢,我得到了你说的话.OAuth重定向URL应该放在LinkedIn网站上的应用程序中,而不是放在iPhone应用程序本身中.现在[rdEngine updateStatus:@"string"]可以更新LinkedIn活动.但似乎状态只允许像Twitter这样的140个字符. (4认同)