我做的LinkedIn-iphone API授權步驟後確認,和應用程序來截圖:無法通過LinkedIn的API授權的iPhone應用程序
但「關閉」按鈕的功能沒有迴應,也沒有在哪裏使用授權的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卡在那裏。
任何人都可以找到問題和解決方案嗎?
我有API和密鑰(截圖中的「authorized GRACENav」)。您可以在我的.m中顯示示例代碼,我應該將「http:// linkedin_oauth/success」作爲OAuth重定向URL嗎? – lionfly 2010-10-19 20:31:26
謝謝,我得到了你所說的。 OAuth重定向URL應該放在LinkedIn網站的應用程序中,而不是iPhone應用程序本身。現在[rdEngine updateStatus:@「string」]可以更新LinkedIn活動。但似乎地位只允許像Twitter這樣的140個字符。 – lionfly 2010-10-21 13:09:01
只是爲了澄清,正如LinkedIn網絡中的應用程序詳細信息頁面所述,只有在您未傳遞requestToken調用中的oauth_callback參數時纔會使用該參數。如果你使用工具包或lib訪問linkedIn,你可以檢查是否有方法在那裏設置回調(如果你想要的話)(可能是構造函數,setter等)。 – DNax 2014-01-13 17:14:20