I want to encapsulate all of my Facebook interactions in the classroom FacebookFacadein order to keep it clean and tidy. I have an instance of the Facebook iOS SDK class in mine FacebookFacade.
My problem is when I make a call to the Graph API inside the facade, for example:
[self.facebook requestWithGraphPath:@"me" andDelegate:self];
The only method FBRequestDelegatethat is called: requestLoading:and nothing more. I tried to put similar code in other places, for example, in controllers and other models, and there, too, not all methods FBRequestDelegateare called, but only requestLoading:.
In fact, the only way to get other methods FBRequestDelegateto call is to put all my Facebook logic in AppDelegateand make mine AppDelegate FBRequestDelegate.
Why is this so? Am I missing something? I definitely do not want to use it AppDelegateas mine FBRequestDelegate, since I do not want to confuse the goal AppDelegate.
Thank.
source
share