Iphone 用于在linkedIn中发布标题、说明和链接的url

Iphone 用于在linkedIn中发布标题、说明和链接的url,iphone,social-networking,linkedin,Iphone,Social Networking,Linkedin,我需要从我的iphone应用程序在linkedIn的墙上发布 为此,我从下载代码 在这种情况下,张贴在墙上的代码是 - (RDLinkedInConnectionID *)updateStatus:(NSString *)newStatus { NSURL* url = [NSURL URLWithString:[kAPIBaseURL stringByAppendingString:@"/v1/people/~/current-status"]]; newStatus = [newSt

我需要从我的iphone应用程序在linkedIn的墙上发布

为此,我从下载代码

在这种情况下,张贴在墙上的代码是

- (RDLinkedInConnectionID *)updateStatus:(NSString *)newStatus {
  NSURL* url = [NSURL URLWithString:[kAPIBaseURL stringByAppendingString:@"/v1/people/~/current-status"]];
  newStatus = [newStatus length] > kRDLinkedInMaxStatusLength ? [newStatus substringToIndex:kRDLinkedInMaxStatusLength] : newStatus;
  NSData* body = [RDLinkedInRequestBuilder buildSimpleRequestWithRootNode:@"current-status" content:newStatus];
  return [self sendAPIRequestWithURL:url HTTPMethod:@"PUT" body:body];
} 
这是只发布当前状态的代码,但我需要像facebook一样发布标题、描述和url


我怎样才能做到这一点,谁能帮我一下吗

我用sharelink方法解决了这个问题。泰国代码

-(RDLinkedInConnectionID *)shareLink:(NSDictionary *)shareDict { 
    NSURL* url = [NSURL URLWithString:[kAPIBaseURL stringByAppendingString:@"/v1/people/~/shares"]];   
    NSString *xmlStr = [NSString stringWithFormat:@"<share><content><title>%@</title><submitted-url>%@</submitted-url><description>%@</description></content><visibility><code>anyone</code></visibility></share>",[shareDict objectForKey:@"Title"],[shareDict objectForKey:@"Link"],[[shareDict objectForKey:@"Description"]substringWithRange:NSMakeRange(0,150)]];  
    NSData* body = [xmlStr dataUsingEncoding:NSUTF8StringEncoding]; 
    return [self sendAPIRequestWithURL:url HTTPMethod:@"POST" body:body];
}