2010-09-30 109 views
3

我做的LinkedIn-iphone API授權步驟後確認,和應用程序來截圖:無法通過LinkedIn的API授權的iPhone應用程序


where to use the 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??"]; 
} 

方法不運行。

因此,LinkedIn API卡在那裏。

任何人都可以找到問題和解決方案嗎?

回答

5

該應用程序將要求您填寫來自LinkedIn的API和密鑰。你 應用程序應該被指定爲一個移動應用程序,以及OAuth的重定向URL 必須設置爲: http://linkedin_oauth/success

+1

我有API和密鑰(截圖中的「authorized GRACENav」)。您可以在我的.m中顯示示例代碼,我應該將「http:// linkedin_oauth/success」作爲OAuth重定向URL嗎? – lionfly 2010-10-19 20:31:26

+4

謝謝,我得到了你所說的。 OAuth重定向URL應該放在LinkedIn網站的應用程序中,而不是iPhone應用程序本身。現在[rdEngine updateStatus:@「string」]可以更新LinkedIn活動。但似乎地位只允許像Twitter這樣的140個字符。 – lionfly 2010-10-21 13:09:01

+0

只是爲了澄清,正如LinkedIn網絡中的​​應用程序詳細信息頁面所述,只有在您未傳遞requestToken調用中的oauth_callback參數時纔會使用該參數。如果你使用工具包或lib訪問linkedIn,你可以檢查是否有方法在那裏設置回調(如果你想要的話)(可能是構造函數,setter等)。 – DNax 2014-01-13 17:14:20

1

當我去到LinkedIn驗證屏幕,我得到了LinkedIn屏幕的截視圖。

我在LinkedIn網站上的應用程序中輸入了OAuth重定向URL。 我也將該應用識別爲移動應用。

Best Regards,Somnath