Update:
Since Facebook apparently made this header private, you now have to subscribe directly to the notification using a raw string:
[[NSNotificationCenter defaultCenter] addObserver:myObject selector:@selector(myCallback:) name:@"FBLikeActionControllerDidUpdateNotification"];
Old answer for reference:
For anyone in the future looking for this: I ended up subscribing myself to FBLikeActionControllerDidUpdateNotification notifications. Once the notification is received you can do the following:
if ([notification.object isKindOfClass:[FBLikeActionController class]]) {
if ([(FBLikeActionController*)notification.object objectIsLiked]) {
// do your stuff here, user liked!
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…