Alright, I'm leaving this for people having a similar issue. The culprit was the HTTPBody that was not appending 'true
' for is-Liked
key.
So I added true for is-Liked manually and that did the trick.
NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"http://api.linkedin.com/v1/people/~/network/updates/key=%@/is-liked",updateKey]];
OAMutableURLRequest *request =
[[OAMutableURLRequest alloc] initWithURL:url
consumer:self.consumer
token:self.token
callback:nil
signatureProvider:nil];
[request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
[request setHTTPBodyWithString:@"true"];// <-this is the magic wand!
[request setHTTPMethod:@"PUT"];