Nik
Nik

Reputation: 9442

iOS FBRequest success delegate method

Is there any simple way to get a success notification from instance of FBRequest?

Like - (void)request:(FBRequest *)request didFailWithError:(NSError *)error for errors.

Upvotes: 2

Views: 362

Answers (1)

Nik
Nik

Reputation: 9442

Seems that the only way is to check if response code of NSURLResponse is 200.

- (void)request:(FBRequest *)request didReceiveResponse:(NSURLResponse *)response {
    if (200 == [response statusCode]) {
        NSLog(@"Success");
    }    
}

Upvotes: 1

Related Questions