title: LinkedIn framework for ios cannot log in
body: <p>I have to integrate linkedIn sharing in my app, I will be using <a href="https://github.com/synedra/LinkedIn-OAuth-Sample-Client" rel="nofollow">this framework</a>.
  It has a sample project. I open it, set up my apikey and secret key but the authorisation doesn't happen. Login window is opened and immediately closed,when I click get linkedIn profile. Also when I set up my linkedIn app, what should I put into JavaScript API domain? Now I put:</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://platform.linkedin.com/in.js"&gt;
    api_key: myapikey
    authorize: true
  &lt;/script&gt;
  
  - (void)initLinkedInApi
  {
      apikey = @"myapikeys";
      secretkey = @"mysecretkey";   
  
      self.consumer = [[OAConsumer alloc] initWithKey:apikey
                                          secret:secretkey
                                           realm:@"http://api.linkedin.com/"];
  
      requestTokenURLString = @"https://api.linkedin.com/uas/oauth/requestToken";
      accessTokenURLString = @"https://api.linkedin.com/uas/oauth/accessToken";
      userLoginURLString = @"https://www.linkedin.com/uas/oauth/authorize";    
      linkedInCallbackURL = @"hdlinked://linkedin/oauth";
  
      requestTokenURL = [[NSURL URLWithString:requestTokenURLString] retain];
      accessTokenURL = [[NSURL URLWithString:accessTokenURLString] retain];
      userLoginURL = [[NSURL URLWithString:userLoginURLString] retain];
  }
  </code></pre>
  
  <p>And also I get this error:
  Unbalanced calls to begin/end appearance transitions for .</p>