私は一生、ios Facebook SDKの投稿からいいねを削除するための接続を確立する方法を理解できません。これが接続を気に入る私のコードです。いいねを削除するにはどうすればよいですか?startForDelete 接続を確立できません。
// create the connection object
FBRequestConnection *newConnection = [[FBRequestConnection alloc] init];
// create a handler block to handle the results of the request for fbid's profile
FBRequestHandler handler =
^(FBRequestConnection *connection, id result, NSError *error){
// output the results of the request
[self likeCompleted:connection thisObject:thisObject thisIndexPath:thisPath result:result error:error];
};
// vars
NSString *postString = [NSString stringWithFormat:@"%@/likes", thisObject.itemId];
FBGraphObject *graphObject = [[FBGraphObject alloc] init];
// create request
FBRequest *request = [[FBRequest alloc] initForPostWithSession:FBSession.activeSession graphPath:[NSString stringWithFormat:@"%@", postString] graphObject:graphObject];
// add the request
[newConnection addRequest:request completionHandler:handler];
// add to open conection
[openFbConnections addObject:thisObject.userId];
// if there's an outstanding connection, just cancel
[requestConnection cancel];
// keep track of our connection, and start it
requestConnection = newConnection;
[newConnection start];