philippec / PhFacebook

MacOSX Interface to Facebook graph API
http://developer.casgrain.com/?p=107
Other
178 stars 44 forks source link

Completion blocks. #41

Closed raffael closed 8 years ago

raffael commented 11 years ago

Example:

fb = [[PhFacebook alloc] initWithApplicationID:@"XXXXXXX"];
[fb getAccessTokenForPermissions:@[@"publish_actions"] cached:NO withCompletionBlock:^(NSDictionary *result) {
    [fb sendRequest:@"/me" withCompletionBlock:^(NSDictionary *result) {
        NSLog(@"Got /me result: %@", result);
    }];
    [fb sendFQLRequest:@"SELECT uid, sex, name from user WHERE uid = me()" withCompletionBlock:^(NSDictionary *result) {
        NSLog(@"Got FQL result: %@", result);
    }];
}];
fjaeger commented 11 years ago

I highly appreciate your work, but can't we have the completion blocks separately and discuss ARC in another pull request?

raffael commented 11 years ago

Our main goal was to extend PhFacebook with completion blocks as fast as possible for the (RMFBLayer project) [https://github.com/raffael-me/RMFBLayer], and since we're using ARC in all of our current projects, the ARC transformation was just a 'small cosmetical fix'. I have to admit there are still lots of projects that do not make use of ARC!

philippec commented 8 years ago

Sunsetting the project. See README.md.