iOS Facebook SDK: FBRequestDelegate only works on AppDelegate??
Posted
by
RMR
on Stack Overflow
See other posts from Stack Overflow
or by RMR
Published on 2010-12-29T00:17:28Z
Indexed on
2010/12/29
2:53 UTC
Read the original article
Hit count: 273
Hi guys,
I want to encapsulate all my Facebook interactions within a FacebookFacade class to keep things clean and tidy. I have an instance of the iOS SDK Facebook class within my FacebookFacade.
My problem is that when I make a Graph API call within the facade, such as:
[self.facebook requestWithGraphPath:@"me" andDelegate:self];
the only method of FBRequestDelegate that gets called is requestLoading: and nothing else. I have tried putting similar code in other places, like in controllers and other models, and there too not all of the FBRequestDelegate methods get called, only requestLoading:.
In fact the only way I can get the other FBRequestDelegate methods to be called is to put all my Facebook logic in the AppDelegate and make my AppDelegate the FBRequestDelegate.
Why is this the case? Am I missing something here? I definitely do not want to use the AppDelegate as my FBRequestDelegate as I don't want to confuse the purpose of the AppDelegate.
Thanks.
© Stack Overflow or respective owner