Closed Liron-K closed 11 years ago
How can I use your sdk to post a like on a photo?
Thanks, L
EDIT: Figured it out ` -(void)likeImage:(NSString)imageId { NSString methodName = [NSString stringWithFormat:@"media/%@/likes", imageId]; NSMutableDictionary* params = [[NSMutableDictionary alloc] init]; [m_Instagram requestWithMethodName:methodName params:params httpMethod:@"POST" delegate:self]; }
-(void)unlikeImage:(NSString)imageId { NSString methodName = [NSString stringWithFormat:@"media/%@/likes", imageId]; NSMutableDictionary* params = [[NSMutableDictionary alloc] init]; [m_Instagram requestWithMethodName:methodName params:params httpMethod:@"DELETE" delegate:self]; } `
hi, sorry for late reply. anyway, yes, that's the solution ;)
How can I use your sdk to post a like on a photo?
Thanks, L
EDIT: Figured it out ` -(void)likeImage:(NSString)imageId { NSString methodName = [NSString stringWithFormat:@"media/%@/likes", imageId]; NSMutableDictionary* params = [[NSMutableDictionary alloc] init]; [m_Instagram requestWithMethodName:methodName params:params httpMethod:@"POST" delegate:self]; }
-(void)unlikeImage:(NSString)imageId { NSString methodName = [NSString stringWithFormat:@"media/%@/likes", imageId]; NSMutableDictionary* params = [[NSMutableDictionary alloc] init]; [m_Instagram requestWithMethodName:methodName params:params httpMethod:@"DELETE" delegate:self]; } `