I am developing Facebook iOS application. The problem I encountered that there is no method initWithAppID, only initWithAppID andDelegate:
But I don’t want to specify the delegate while initializing the object, because I am doing this in my appDelegate and <FBRequestDelegate> i.e. will be implemented in my UIView subclass.
So my question: where is better to initialize Facebook object and what to set in andDelegate: ?
Would be grateful for the answer,
Artem
All the methods on FBSessionDelegate are marked as optional so you should be able to pass nil as the delegate.
The Facebook class has the delegate as an assigned property, so you can set it later on.