# Sign in through linked in sdk

**URL:** <https://forums.kodeco.com/t/sign-in-through-linked-in-sdk/13285>\
**Category:** iOS\
**Created:** [April 13, 2016, 2:53am UTC](https://forums.kodeco.com/t/sign-in-through-linked-in-sdk/13285 "2016-04-13T02:53:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eric121](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/eric121/32/33528_2.png) [@eric121](https://forums.kodeco.com/u/eric121)\
**Post date:** [April 13, 2016, 2:53am UTC](https://forums.kodeco.com/t/sign-in-through-linked-in-sdk/13285/1 "2016-04-13T02:53:45Z")

</div>

Hi, everyone

I am making the app for social media. this app uses linked in sdk for sign in. btw, when I use the auth, I can sign in. but when I use the linked in sdk, the app opens the linked in app and can’t return the original app.  
I have followed the linked in developer tutorial, but failed to sign in using sdk. the sdk I used is li-ios-sdk-1.0.7-release.

Can anyone help for this issue?  
The app is written by objective-c.  
sorry for my poor english.

Thanks for your help.  
eric

---

<div class="post-metadata">

**Author:** ![jecht83](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jecht83/32/111154_2.png) [@jecht83](https://forums.kodeco.com/u/jecht83)\
**Post date:** [April 16, 2016, 5:24am UTC](https://forums.kodeco.com/t/sign-in-through-linked-in-sdk/13285/2 "2016-04-16T05:24:02Z")

</div>

if you can login into the Linked In App and the app is not redirecting you to your app then you should add this code into your AppDelegate.m

`- (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; }`

let me know how it goes

Good Luck!!

---

<div class="post-metadata">

**Author:** ![eric121](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/eric121/32/33528_2.png) [@eric121](https://forums.kodeco.com/u/eric121)\
**Post date:** [April 17, 2016, 1:06am UTC](https://forums.kodeco.com/t/sign-in-through-linked-in-sdk/13285/3 "2016-04-17T01:06:21Z")

</div>

Hi, jecht83

Thanks for your answer.  
I have already added that code to the AppDelegate.m

But I think this code doesn’t work.  
Thanks again  
eric

---

<div class="post-metadata">

**Author:** ![jecht83](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jecht83/32/111154_2.png) [@jecht83](https://forums.kodeco.com/u/jecht83)\
**Post date:** [April 17, 2016, 8:32am UTC](https://forums.kodeco.com/t/sign-in-through-linked-in-sdk/13285/4 "2016-04-17T08:32:20Z")

</div>

How can your app know that it should be opened from other apps?

Yup URL Schemes, take a look at this twitter tutorial

[URL Schemes Tutorial](https://dev.twitter.com/cards/mobile/url-schemes)

So the code that you have already added to the AppDelegate.m file only will work if you enable URL Schemes

open your info.plist file and check if the **URL types** array exist or check the section of the twitter tutorial that is almost the same

if you check the LinkedIn sample app it has this URL Scheme **li4277321**

hope this time it works for you

Good Luck!!
