私は次のコードを持っています:
- (void) likeImage:(AHInstagramImageData *) image
success:(void (^)(BOOL success))success
failure:(void (^)(NSError* error, NSInteger statusCode))failure
{
NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys:
[AHInstagramSession session].accessToken, @"access_token",
nil];
NSString *likeCommentPath = [NSString stringWithFormat:@"media/%@/likes", image.imageId];
[self postPath:likeCommentPath parameters:params success:^(AFHTTPRequestOperation *operation, id response){
if ([operation hasAcceptableStatusCode]) {
[[LocalyticsSession sharedLocalyticsSession] tagEvent:@"Like"];
[[AHFacebookSession session] postAction:@"like" forImageData:image];
[[AHTwitterSession session] postAction:@"like" andObject:image];
success(YES);
}failure:^(AFHTTPRequestOperation *operation, NSError *error){
failure(error, operation.response.statusCode);
NSLog(@"Failure on liking a photo %@", [error description]);
}];
}
そしてそれは私にエラーを与えます: