• bdurette
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies

I'm trying to enable 'Like' functionality in my app using the iOS toolkit. The code I'm using is as follows:

 

 

-(void) like:(NSString *)messageId {
    ZKSObject *like = [[[ZKSObject alloc] initWithType:@"FeedLike"] autorelease];
    [like setFieldValue:messageId field:@"FeedItemId"];
    
    FDCServerSwitchboard *switchboard = [FDCServerSwitchboard switchboard];
    NSArray *objects = [NSArray arrayWithObject:like];
    [switchboard create:objects target:self selector:@selector(likeCreated:error:context:) context:nil];
}

 The error message I'm getting is:

 

<__NSArrayM 0xd9454b0>(

INVALID_TYPE - sObject type 'FeedLike' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names.

)

 

Is there something else I need to do to get "Likes" working?