私は初心者で、私のアプリケーションにlinkedinを統合する必要があります。クライアントIDとクライアント秘密を生成しました。私はlinkedinのドキュメントを読んだことがありますが、私はいくつかのエラーが発生するたびに同じように私を導いてください。私はこれを試してみましたが、私もAppDelegate
クラスでは、この5月には、あなたが作成しissue on iosでLinkedinを統合する
0
A
答えて
0
役立ちます
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
if ([LISDKCallbackHandler shouldHandleUrl:url]) {
return [LISDKCallbackHandler application:application openURL:url sourceApplication:sourceApplication annotation:annotation];
}
return YES;
}
0
[LISDKSessionManager createSessionWithAuth:[NSArray arrayWithObjects:LISDK_W_SHARE_PERMISSION, nil]
state:@"some state"
showGoToAppStoreDialog:YES
successBlock:^(NSString *returnState) {
NSLog(@"%s","success called!");
NSLog(@"Access Token: %@", [[[LISDKSessionManager sharedInstance] session].accessToken description]);
NSString *url = @"https://api.linkedin.com/v1/people/~/shares";
NSString *str = @"Your String";
NSString *payload = @"Your Payload";
if ([LISDKSessionManager hasValidSession]) {
[[LISDKAPIHelper sharedInstance] postRequest:url stringBody:payload
success:^(LISDKAPIResponse *response) {
// do something with response
NSLog(@"%s","success called!");
UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Linkedin" message:@"Shared successfully." delegate:self cancelButtonTitle:@"Ok" otherButtonTitles: nil];
[alert show];
}
error:^(LISDKAPIError *apiError) {
// do something with error
NSLog(@"%s","error called!"); UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Oops!" message:@"There was a problem sharing. Please try again later." delegate:self cancelButtonTitle:@"Ok" otherButtonTitles: nil];
[alert show];
}];
}
}
errorBlock:^(NSError *error) {
NSLog(@"%s %@","error called! ", [error description]);
UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Oops!" message:@"There was a problem sharing. Please try again later." delegate:self cancelButtonTitle:@"Ok" otherButtonTitles: nil];
[alert show];
}
];
希望を書かれたものを
[[LISDKAPIHelper sharedInstance]getRequest:(NSString *)url success:^(LISDKAPIResponse *) {
} error:^(LISDKAPIError *)
{
}];
の内側に書くために知っていないget要求のために あなたのViewControllerのUIButtonのコンセント
Info.plistのはLSApplicationQueriesSchemes
- LinkedInの-SDK
- LinkedInの-sdk2
の下に以下を追加します。また、あなたのplistファイルであなたのLinkedInのアプリIDを追加します。あなたが取得しているかのエラー、あなたのAppDelegate
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
return [LISDKCallbackHandler application:application openURL:url sourceApplication:sourceApplication annotation:annotation];
return YES;
}
+0
[APP_DELEGATE removeLoader]これは動作しません –
+0
申し訳ありません。その行を削除してください...そのコード... はこのコードが@NarendraPandeyで動作していますか? –
関連する問題
- 1. SpringSocial LinkedIn統合エラー
- 2. Parse-server/iOSで安全な方法でLinkedInログインを統合
- 3. LInkedIn C#での統合
- 4. LinkedinをAngular2に統合する方法
- 5. IOS HTML5 Canvas Issue on draw/clearRect
- 6. ScribeとLinkedInの統合
- 7. LinkedIn iOS統合でr_fullprofile権限にアクセスする方法はありますか?
- 8. SignIn with LinkedIn with Androidの統合
- 9. My RailsアプリケーションにLinkedin、Facebook、Google +を統合する方法は?
- 10. LinkedinをAndroidアプリケーションに統合する方法は?
- 11. FluentValidation on number issue
- 12. jQuery on Selector Issue
- 13. TDD:Test on Unit on Rails?表示/統合
- 14. Ruby on Rails 4とPhonegapを統合してネイティブiOSアプリケーションを構築する
- 15. JS APIを使用してLinkedInログインを統合
- 16. カバレッジ統合テストIntelliJ on Wildfly
- 17. iOSアプリケーションでのFlickr統合
- 18. iOSでのVoIPコール統合
- 19. ScribeとSpring LinkedIn APIにアクセスするためのソーシャル統合
- 20. IOSのPayPal統合
- 21. Issue @JsonProperty onメソッド
- 22. issue on tokenize.py
- 23. Django MySQLdb issue on apache2
- 24. Ruby on RailsでのJavaScript統合テスト
- 25. 他のネイティブissueトラッカーとGitを統合するには?
- 26. Uber iOSデモsdkを統合
- 27. Python Threading Issue on Windows
- 28. LinkedInでログインする(ウェブ/ Oauthとモバイル/ SDKが統合されています)
- 29. iOSアプリのAppleカレンダー統合ですか?
- 30. Devise issue Ruby on rails
で
:あなたのViewControllerでこれを行いますか? – Signare
実際に私は彼らが段階的に説明したgoogleのfacebookを統合しましたが、linkinにそのような説明はありません –
検索すると、githubからデモプロジェクトを取得します。これを実装してテストすることができます。 – Signare